Saturday, 16 June 2018

Serverless Architecture

In simple words Serverless Architecture or Serverless computing is where developer doesn't need to worry about managing a server, server management and capacity planning decisions are completely hidden from developer.
what is Serverless Architecture ?


According to Wikipedia

"Serverless computing is a cloud-computing execution model in which the cloud provider 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."

Why Serverless - Obviously as it removes the headache of maintaining a server and resources are deployed according to requirement which reduces cost. Scalability is another factor which is taken care by cloud provider who seamlessly scales capacity to demand.

How to achieve Serverless,
1. By Incorporating third-party “Backend as a Service” (BaaS) services. BAAS in simple terms is a third party API. For example - OAuth based login system. So instead of having a login functionality running on a developer managed a server, one can use third party service which is already there.
2. Using (Function as a Service) FaaS - This is a fairly recent development in cloud computing where in simple terms provides a way to run a code when an event happens. Here Software developers deploy individual function which is expected to start within milliseconds process a request and then end. 

Principles of FaaS:
·       Complete abstraction of servers away from the developer
·       Billing based on consumption and executions, not server instance sizes
·       Services that are event-driven and instantaneously scalable.

Following are the list of FaaS providers
  • ·       hook.io
  • ·       AWS Lambda
  • ·       Google Cloud Functions
  • ·       Microsoft Azure Functions
  • ·       IBM/Apache's OpenWhisk (open source)
  • ·       Oracle Cloud Fn (open source)


FaaS capabilities also exist in private platforms, as demonstrated by Uber's Schema less triggers.


1 comment:

THANKS FOR UR GREAT COMMENT

Blogger Widgets