Serverless Architecture &
Spring-Cloud-Function

Agenda

  • Server Less Architecture

  • Benefits and Drawback of Serverless Architecture

  • What is Spring Cloud Function

  • Demo with Azure Cloud

  • How Does Spring Cloud Function/Azure Function Internal Work?

 

What is Serverless Architecture?

Serverless is a cloud computing execution model where the cloud provider dynamically manages the allocation and provisioning of servers.
 

A serverless application runs in stateless compute containers that are event-triggered and fully managed by the cloud provider. Pricing is based on the number of executions rather than pre-purchased compute capacity

 

Focus on your application, not the infrastructure

From business perspective

  1. The cost incurred by a serverless application is based on the number of function executions, measured in milliseconds instead of hours.
  2. Process agility: Smaller deployable units result in faster delivery of features to the market, increasing the ability to adapt to change.
  3. Cost of hiring backend infrastructure engineers goes down.
  4. Reduced operational costs

From developer perspective

  1. Reduced liability, no backend infrastructure to be responsible for.
  2. Zero system administration.
  3. Easier operational management.
  4. Faster set up.
  5. Scalable, no need to worry about the number of concurrent requests.
  6. Monitoring out of the box.

Benefits of Serverless Architecture

  1. Reduced overall control.

  2. Cost is unpredictable because the number of executions is not predefined

  3. Some of Librery will Not work with Serverless Like Swagger.

  4. Not Good For  Higher Level Enterprises Application.

  5. The developers are dependent on vendors for debugging and monitoring tools

  6. Lack of local testing options

  7. Hard limit on invocation payload size (e.g. 128 KB for AWS/Azure Lambda)

Drawbacks of Serverless Architecture

Serverless Providers (FAAS)

 

How to Implement Serverless Code in Spring Boot

Spring Cloud Function is a new project from the Spring team at Pivotal that aims to promote the function as the primary unit of development work

 

Serverless computing is a cloud-computing execution model in which the cloud provider runs the server, and dynamically manages the allocation of machine resources. 

Pricing is based on the actual amount of resources consumed by an application, rather than on pre-purchased units of capacity. 

Products like Google Function,AWS Lambda,Azure Function are available in market and tons of application are running using these products.

Demo with Azure Cloud

How Does Azure Function work Internally?

Spring-Cloud-Function

By Sagar Mal Shankhala