Blog
WebsiteLoginFree Trial
  • 🏠PagerTree Blog
  • πŸ“£AT&T Email to Text Ends June 17, 2025: Switch to PagerTree Notifications
  • πŸ“£Meet the PagerTree CLI: Your New On-Call Sidekick!
  • πŸ“£OpsGenie Shutdown Announced: Why PagerTree Is Your Best Alternative in 2025
  • πŸ’ŽGetting Started With Ruby on Rails in 2024 - The Complete Development Environment Guide
  • πŸ“£WhatsApp Notifications
  • 🧠Site Reliability Engineer (SRE) Interview Questions
  • πŸ‘‘What is System Monitoring?
  • πŸ‘‘Top 5 Best PagerDuty Alternatives in 2024
  • πŸ”‘Understanding Linux File System: A Comprehensive Guide to Common Directories
  • πŸ”‘Ping Command: A Comprehensive Guide to Network Connectivity Tests
  • πŸ“œFly.io migrate-to-v2 Postgres stuck in read-only mode
  • πŸ’ŽMulti-Tenant SSO using Devise
  • ✨PromQL Cheat Sheet: A Quick Guide to Prometheus Query Language
  • πŸ”‘PowerShell Cheat Sheet: Essential Commands for Efficient Scripting
  • πŸ“£Critical Alerts for iOS and iPhone
  • πŸ“£PagerTree 4.0 is finally here!
  • πŸ’ŽRuby on Rails Polymorphic Select Dropdown
  • 🧠SRE Metrics: Availability
  • 🚨Incident Response Alert Routing
  • πŸ’ŽRuby on Rails Development Setup for Beginners
  • ✨Jekyll site to AWS S3 using GitHub Actions
  • πŸ’ŽMigrate attr_encrypted to Rails 7 Active Record encrypts
  • πŸ’ŽRuby on Rails Cheat Sheet
  • πŸ“£PagerTree Forms Integration
  • πŸ“£Public Team Calendars
  • πŸ“£Slack, Mattermost, Microsoft Teams, and Google Chat
  • πŸ“£On-call Schedule Rotations
  • πŸ“£Maintenance Windows
  • ✨Docker Commands Cheat Sheet
  • πŸͺ„Slack Channel Stakeholder Notifications
  • πŸ“£PagerTree Live Call Routing
  • 🧠The Science of On-Call
  • ✨serverless
    • 🧠What is Serverless?
    • 🧠Serverless Scales
    • 🧠Serverless Costs
    • ✨Serverless Tools and Best Practices
  • ✨Prometheus Monitoring Tutorial
Powered by GitBook
On this page
  • Traditional Highly Available Scalable Architecture
  • 2 Tier Architecture
  • 3 Tier Architecture
  • Serverless Architecture
  • How you can benefit
  • Summary

Was this helpful?

  1. serverless

Serverless Scales

Learn how serverless architectures scale and handle high availability. Compare serverless architectures to classic N-tier architectures.

PreviousWhat is Serverless?NextServerless Costs

Last updated 9 months ago

Was this helpful?

In Part 1: I talked about how one of the biggest pros to a serverless architecture is how well it scales and how high availability is baked in.

In this post I’ll go over:

  1. How a traditional highly available scalable architecture works

  2. How a scalable serverless architecture works

  3. How you can benefit from a serverless architecture

Firstly, I would like to address that I am not advocating that a serverless architecture is always better than a traditional architecture. Each have their purpose. In this article I will be highlighting how you can benefit from a serverless architecture.

Traditional Highly Available Scalable Architecture

In a traditional highly available scalable architecture, a developer or architect, will have to think about many key components:

  • Networks & Availability Zones

  • Load Balancers

  • Scaling Triggers

  • Security (ex: or Web layer that handles authentication/authorization)

Most commonly, these components are put together to create what is known as an . Below I will talk about a 2 and 3 tier architectures to highlight their differences and complexities. This will help us better understand how a serverless architecture can simplify a highly available scalable architecture solution.

2 Tier Architecture

2 Tier Architecture

In this simple 2 tier architecture, you’ll notice we already have to account for a load balancer, and at least 2 availability zones to make this a highly available application. To be even safer, many would argue you want to have 3 availability zones, with least 3 servers always running. This will make sure that even during a zero downtime deployment your application stays highly available.

3 Tier Architecture

In this common 3-tier architecture we have added 1 more load balancer, and at least 3 more servers. By doing so, we have added many key benefits to our architecture including a DMZ/Web layer and scaling at both Web & App layers. However, we have also increased the complexity of our system roughly by 2.

Serverless Architecture

By using a serverless architecture (like shown above), we have removed the complexity of availability zones, load balancers, scaling triggers and a DMZ. The nature of the serverless function is that the high availability responsibility is now managed by the cloud provider.

Now you might be asking about security, and how that got lost. The API gateway, will handle authentication and authorization with some extra configuration. The fact that the serverless functions are created and destroyed on each execution, means attackers cannot infect your servers, since you essentially have none.

Further, you still could have security flaws in your application that allow it to leak data, but this is an application issue, and not an architecture issue.

How you can benefit

As we can see from above, by using a serverless architecture, we can benefit in many ways

  • Baked in high availability

  • Reduced complexity

  • Costs

Summary

This 2-tier architecture still doesn’t address security concerns like a DMZ/Web layer. For these reasons, most organizations will implement what is known as a . In order to implement this we must add another load balancer, and another layer of applications.

3 Tier Architecture
Serverless Architecture

Granted, there still might be vulnerabilities that have not been make public or patched that attackers can still exploit, however, the of keeping the platform secure is now the cloud providers responsibility.

Costs are something I have not yet covered, since they can be a double edged sword. To get a deep dive on serverless costs, make sure you read Part 3: where I analyze when to use a serverless architecture for cost benefits. However, for most web applications, you will see a significant cost reduction, especially if usage is infrequent or sporadic.

In conclusion, there are many benefits such as reduced complexity, baked in high availability, and reduced costs when using a serverless architecture. Make sure to check out the next post in this series Part 3: where I dive deep into the costs of serverless.

✨
🧠
responsibility
Serverless Costs
Serverless Costs
3-tier architecture
What is Serverless?
DMZ
N-Tier or Multitier Architecture