Skip to the content.

Serverless Computing

Serverless

Serverless computing, introduced in 2014 through AWS Lambda, revolutionized code execution by eliminating the need for server management. Despite the term “serverless,” there are servers in the background, but Amazon takes care of server-related tasks, allowing users to concentrate solely on code development.

Key Points:

In traditional environments, constant server upkeep incurs costs even during idle times, whereas serverless charges only for active usage. This cost-effectiveness is particularly beneficial for workloads with varying demands, avoiding the need for continuous server provision.

Advantages:

However, serverless has its limitations. Execution time is capped (e.g., AWS Lambda’s 15-minute cutoff), requiring special considerations for code execution and state management within this timeframe. Debugging challenges arise as developers lack direct access to underlying infrastructure.

Limitations:

While serverless computing costs may seem higher than traditional servered compute in a 1-to-1 comparison, efficiency depends on resource utilization. Serverless becomes more cost-effective when traditional servers underutilize resources. However, in scenarios of 100% resource utilization, traditional servered options may be more cost-efficient by 20%.

Minimiing cost

|| |-|

Reference: https://aws.amazon.com/blogs/containers/theoretical-cost-optimization-by-amazon-ecs-launch-type-fargate-vs-ec2/

In this article, Amazon provides valuable data on the cost aspects, particularly focusing on containers in the serverless environment. While the discussion is container-specific, the insights are pertinent to all serverless operations.

Key Takeaways on Cost:

When incorporating serverless into your architecture, certain paradigms align well. Notably, event-driven architectures and microservice-based architectures stand out.

Event-Driven Architectures:

Microservice-Based Architectures:

Advantages of Serverless Microservices:

Versatility of Serverless Options:

In summary, this article emphasizes the cost considerations, explores event-driven and microservice-based architectures, and underscores the versatility of serverless options, making it a valuable read for architects venturing into the serverless realm.