Implementing FaaS with Spring Cloud Functions
Under the umbrella of Spring projects, you will find the Spring Cloud Function project (https://cloud.spring.io/spring-cloud-function/), which is designed to implement applications using a serverless architecture model.
Using Spring Cloud Function, we can code functions that can be launched on different cloud providers that support FaaS. There's no need to learn something new from scratch, because all of the core concepts and main features of Spring Framework, such as autoconfiguration, dependency injection, and built-in metrics, are applied in the same way.
Once a function has been coded, it can be deployed as a web endpoint, a stream processor, or simple tasks that are triggered by certain events or via a scheduler.
Looking at an example of an SPA, we can implement an application using third-party services, the existing REST API, and custom functions. The following diagram illustrates how an application can be created by using all of the previously...