SERVERLESS ARCHITECTURE FUNCTION AS A SERVICE

Tanmay Terkhedkar
3 min readMar 24, 2019

--

What is Serverless Architecture?

A Serverless Architecture is a method to build and run software and services without having to manage servers.In Serverless Architecture,the server will manage by provider and not by consumer.

In Serverless Architecture there are two main types of services:-

  1. Function as a Service(FaaS).
  2. Backend as a Service(BaaS).

What is Function as a Service?

Function as a Service is a type of service in which all features of application are deploy into individual single feature and then each feature is individually hosted by the provider.By using function as a service you can build your application into single independent features.

To host the application on the internet,it needs some kind of virtual server infrastructure.Also it involves managing of operating system,web servers,etc.In function as a Service,all these things are managed by provider and not by consumer.

There are different providers like Amazon Web Service,Microsoft Azure,Google Cloud Platform,IBM who manage virtual server and software processes.

These are some examples who offering FaaS,

AWS Lambda- AWS Lambda is the functions-as-a-service of amazon web service cloud,which offers best service among other providers. It is very popular service among other FaaS services. In AWS Lambda these are the languages in which we can code JavaScript with Node.js, Python, Java, .NET languages (C#, Visual Basic and F#).

Azure Functions (Microsoft Azure)- Azure Functions is a service of Microsoft Azure offering a similar functions-as-a-service model to AWS Lambda.It include some additional features than AWS Lambda.The languages supported by this platforms are JavaScript with Node.js, C#, F#, Python, PHP, Bash, Batch and PowerShell.

Benefits of FaaS:-

l As server is already manage by provider so developer only need to worry about code.Developer can work without any tension of server logistics.

l Easy to understanding the coding of application as single function individually hosted by server.Also functions are not so much complicated because they are in distributed pattern.

l You have to just pay for server functions when you actually use them.It save a lot of money as you will not pay for server while you are not using them.

Some drawbacks of FaaS:-

l Due to pay per use model,the cost of service is unpredictable.

l The developers are dependent on the providers(AWS,Azure Functions) for testing and managing tools.Also they have to work according to the rules of the providers.

References:-

l https://headmelted.com/serverless-showdown-4a771ca561d2

l https://developer.ibm.com/tv/serverless-vs-functions-service-whats-difference/

l https://dashbird.io/blog/top-function-as-a-service-faas-providers/

--

--