FaaS: Function as a Service – Serverless Architectures (I)


IT evolution in last years has gone from the basic migration of software applications to public and private cloud infrastructures to a big usage of cloud providers services.

It all started by replicating everything we had in our premises infrastructure into cloud resources. No matter if we had an LDAP, web servers and application servers, corporate DNS and many other elements that we can find typically in company infrastructure. This is known as IaaS (Infrastructure as a Service) and it’s the straight forward approach to the cloud migrations.

After that, cloud providers started to develop their own services begining with databases as service (so we don’t need to handle complex database clusters in our infrastructure to get high availability), load balancers where we only need to plug them in cloud resources and we will have load balancing without deep knowledge on the complexities a proper load balancing has. This is known as PaaS.

Many other services were added but we still needed to create our virtual machine, with knowledge about system administration, software development, networking and deep understanding about the architecture we wanted to build for our application/service.

Timeline of moving to FaaS

What is FaaS?

The idea beneath FaaS is to make developer’s life easier decreasing the knowledge he has to master (or at least to understand) to deliver a working solution in a cloud provider.

As an example, let’s think about a typical web application. Usually, we think about it as three layers application, the browser as client side, the server where all the bussiness logic runs and finally the database where the persistence happens.

Traditional Approach

FaaS principles will try to abstract these three layers into components where only specific functions will run as part of the business logic. This will end up with many elements running only an small “function” and isolating itself from the rest of the system. This can be summarized as:

  1. Abstraction from servers away from developers.
  2. Event oriented applications
  3. Isolation between componetes
  4. Capability of scaling components individually

Applying serverless architecture paradigm may end up in an typical e-commerce application with the following elements:

  • An authentication service
  • An API gateway to drive business logic
  • Functions for business logic as:
    • Purchase
    • Search
    • Cancel orders
    • Order Basket
  • Databases per service
Serverless Architecture Example

This is just an example about what FaaS is. There will be a new post comparing FaaS providers.


[1] https://stackify.com/function-as-a-service-serverless-architecture/

[2] https://dzone.com/articles/what-is-function-as-a-service-serverless-architect

[3] https://martinfowler.com/articles/serverless.html

Author: Fernando Munoz

Software Team Leader

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.