Introduction to Serverless and Functions as a Service (FaaS) for dummies!
Tags: serverless, aws, googlecloud, azure
Published: 2021-12-18 14:49:56

**Serverless? Functions as a Service (FaaS)? What is the purpose? AWS Lambda? Who uses it? Google Functions? Cases? Azure Functions?**
Obs: This post was first posted on [Medium](https://jlgjosue.medium.com/introduction-to-serverless-and-functions-as-a-service-faas-for-dummies-d764863f842b)

In the past, we had software that was developed under monolithic architectures and ended up with highly coupled processes, they were not prepared to be scalable, much less to evolve, and because they are highly coupled, a single point of failure could impact the entire solution, causing the unavailability for the customer.

As time went by, he saw the need to create more adaptable systems for diverse and independent groups. With that, the idea of separating software into “services” arose, each one performing a specific function in an independent, specialized and scalable.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2vjq8z4qjnpxoro06dy3.png)

Adopting the microservices' architecture, we achieve greater development agility, flexible scalability to the client’s scenario; we make the solution easier to be implemented, we gain greater freedom to work with different technologies in the same project, in addition to making the code reusable and with the independence between the microservices we gain more resilience to the adversities of the environment, that is, the possibility of the system to continue working without the functionality of a service affecting the entire system.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x226droo2aes9cyy8rmj.png)
 
Aiming to simplify even more, companies that have cloud computing solutions such as AWS, Google, and Microsoft, among others, started to create solutions where it is abstracted and facilitates the management and configuration of the server infrastructure (Serverless), enabled scalability continues, they created business models where the user pays only for the computing time consumed, in addition to enabling uniform performance, in practice the developer is only concerned with the development of the function and the availability of this function as a service, creating a new approach known as Function as a Service (FaaS).
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vcnuw8lzmtf8ap5kafnj.png)

Accompanied by this approach to functions as a service, AWS created the AWS Lambda solution that, in addition to incorporating addressing functions as a service, can also connect to your other solutions in your cloud and create diverse solutions in cloud computing.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8f8mkbzsfjbcvnonywrs.png)

Using AWS Lambda, The Seattle Times can resize images for viewing on different devices, avoiding the cost of acquisition and infrastructure configuration without problems with large volumes of traffic serving its customers and keeping its services stable.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qxkddh5gjkyrxreu9ybb.png)

Aible uses the AWS lambda uses for machine learning training and predictions, bringing more savings while benefiting from easy scalability and management, so AI impacts the business quickly and effectively.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wkk8b13l1by5y8v1zud1.png)
To compete with AWS, Google makes Cloud Functions available through its cloud computing solution, Google Cloud, with all Serverless and FaaS functionality, in addition to its own framework for development.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wdpb7s32hydocn4ondpk.png)
Semios makes use of the Cloud Function to interact with its machine learning models in real-time in a scalable way and adaptable to the required traffic and achieving the necessary stability for the business.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tiw0q1pm7fj4e9y16ol7.png)
Smart Parking created all the essential solutions for the company, simplifying the configuration and use of infrastructure in just four months to create and take advantage of an IoT platform to develop smart cities. 
  
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eycytvxjri6utvqkkcs9.png)
**Microsoft** also joined this movement and created the Azure Functions solution through its cloud solution, Azure. In addition to supporting Serverless, this solution provides support for C #, JavaScript, Fixed #, Java, PowerSheel, Python, and TypeScript languages.
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/drlvrnle94thbphtp9qv.png)
Relativity has reduced the time to implement its Discovery platform, which used to be four months before using traditional methods, to just one week with functions.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/32jv2y0og89qri84fh1l.png)
Direct.one with the use of Functions increased the number of transactions by five times and decreased while the cost that was previously used to fund virtual machines.

Serverless and FaaS are the natural evolution of traditional microservices that have already been seen as a revolution to overly coupled monolithic architectures of complex APIs. Its use reduces costs, simplifies the configuration, maintenance, and management of infrastructure, and makes solutions more resilient to adversities.

**References:** 
https://aws.amazon.com/pt/microservices/?nc1=h_ls

https://aws.amazon.com/pt/lambda/?nc1=h_ls

https://aws.amazon.com/pt/solutions/case-studies/the-seattle-times/

https://cloud.google.com/functions/

https://cloud.google.com/customers/semios

https://blog.tecnospeed.com.br/o-que-e-arquitetura-serverless/

https://www.stratoscale.com/blog/compute/keeping-small-serverless-functions-vs-microservices/

https://azure.microsoft.com/pt-br/services/functions/

https://customers.microsoft.com/pt-br/story/relativity-partner-professional-services-azure 

<a href="https://www.buymeacoffee.com/jlgjosue" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>

Follow me on [Medium](https://jlgjosue.medium.com/)  :)