• Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
Updated March 2026

What is Serverless and
What Makes it Great?

Serverless is a cloud architecture where the provider manages all infrastructure. You write code, deploy it, and it runs with no servers to provision, no clusters to manage, no capacity to plan. You pay only for what you use.

Build a Serverless AppRead the Docs

Core Principles of Serverless

Serverless isn't just about functions. It's a set of principles that change how you build, deploy, and operate software.

Core

No Infrastructure to Manage

No servers, VMs, or containers to provision. The cloud provider handles compute, networking, OS patching, and availability.

Scaling

Scales to Zero, and to Millions

Zero traffic means zero cost. A traffic spike means instant scaling. No pre-provisioning, no idle resources, no capacity planning.

Cost

Pay Per Execution

Billed by the request and millisecond of compute. No charge when nothing is running. Fundamentally different from paying for always-on servers.

Velocity

Deploy in Seconds

Ship features without waiting for infrastructure teams. Define your stack in code and deploy with a single command.

Security

Secure by Default

The provider handles OS security, network isolation, and patching. You focus on application-level security and IAM policies.

Architecture

Event-Driven by Nature

Functions run in response to events: HTTP requests, file uploads, database changes, schedules, messages. Compose systems from loosely coupled pieces.

Serverless vs. Traditional Architecture

The fundamental shift from “serverful” to serverless changes how every layer of your application is built and operated.

AspectTraditionalServerless
InfrastructureYou provision and manage servers, load balancers, clustersFully managed by the cloud provider
ScalingManual or auto-scaling groups with lagInstant, automatic, per-request scaling
PricingPay for running instances 24/7Pay per request and execution duration
Idle costFull cost even with zero trafficZero cost at zero traffic
DeploymentConfigure CI/CD, containers, orchestrationDeploy functions and config with one command
MaintenanceOS patches, runtime updates, security fixesHandled by the provider
Cold startsNone; servers are always running50ms–2s on first request after idle
Execution limitsNone; run as long as needed15 min max on AWS Lambda

How Serverless Architecture Works

A serverless application is composed of managed cloud services, each handling a specific concern. There are no servers to run, only services to configure.

1

Event

Something triggers your function: an HTTP request, a file upload to S3, a database change, a message on a queue, or a scheduled timer. A gateway service routes the event to the right function.

2

Execute

A compute service (AWS Lambda) spins up an isolated environment, runs your code with the event data, and returns the result.

3

Scale Down

The environment is reused for subsequent requests or torn down after idle. You pay only for the execution time.

The Serverless Stack

A typical serverless application on AWS combines these managed services. None require you to manage infrastructure; you configure them and the provider does the rest.

Compute

AWS Lambda

Database

DynamoDB, RDS, Aurora

HTTP / Routing

API Gateway, Function URLs

Storage

S3

Messaging

SQS, SNS

Events

EventBridge

Auth

Cognito, IAM

Benefits of Serverless

Dramatically Lower Costs

Traditional infrastructure runs 24/7 whether anyone is using it or not. A staging server sitting idle overnight still costs the same as during peak hours. Serverless flips this model: you pay per request and per millisecond of execution. Zero traffic at 2 AM means zero cost. For most applications, this results in 60–90% lower infrastructure bills. The AWS Lambda free tier alone covers 1 million requests and 400,000 GB-seconds per month, permanently.

Instant, Automatic Scaling

In a traditional architecture, handling a traffic spike requires pre-provisioned capacity or auto-scaling groups that take minutes to react. Serverless services like Lambda scale per-request, instantly. Whether you get 10 requests per day or 10,000 per second, the system handles it without intervention. There is no capacity planning, no load testing for infrastructure limits, and no 3 AM pages because a server ran out of memory.

Faster Development Velocity

When developers don't need to configure load balancers, patch operating systems, or manage container orchestration, they ship features faster. A new API endpoint goes from code to production in minutes, not days. Teams stop waiting for infrastructure provisioning and start iterating on what matters: the product. The Serverless Framework reduces deployment to a single command: serverless deploy.

Reduced Operational Burden

Serverless eliminates entire categories of operational work: no OS updates, no runtime patches, no security fixes for the compute layer, no capacity monitoring. This doesn't just save time; it reduces the need for dedicated infrastructure teams. Smaller organizations can build and run production systems that previously required dedicated DevOps headcount.

Built-In High Availability

Serverless services run across multiple availability zones by default. Lambda automatically retries failed asynchronous invocations. DynamoDB replicates data across three AZs. You get the fault tolerance of a multi-region architecture without configuring any of it.

Trade-offs to Consider

Serverless is not the right choice for every workload. Understanding the constraints helps you make better architectural decisions.

Cold starts

When a function hasn't been invoked recently, the first request incurs initialization latency, typically 50–200ms for Node.js/Python, up to 1–2s for Java/.NET. Mitigations include SnapStart (free, up to 10x faster for Java/Python/.NET) and Provisioned Concurrency (paid, eliminates cold starts entirely).

Execution time limits

AWS Lambda functions can run for a maximum of 15 minutes. Long-running tasks like video transcoding or large ML training jobs need to be broken into steps (using Step Functions) or run on containers/EC2.

Cost at sustained high throughput

At very high, consistent load (millions of requests per hour, sustained 24/7), the per-invocation pricing model can exceed the cost of reserved EC2 instances or containers. Run the numbers for your specific workload.

Debugging complexity

Distributed functions communicating through events are harder to debug than a monolithic application. Good observability tooling (CloudWatch, X-Ray, Serverless Framework Dashboard) is essential.

Vendor dependency

Serverless applications rely heavily on provider-specific services (Lambda, DynamoDB, API Gateway). Migrating between providers requires significant rework. The Serverless Framework mitigates this with its provider-agnostic configuration model.

When to Use Serverless

Serverless excels for these types of applications and workloads.

APIs & web backends

REST, GraphQL, or WebSocket APIs that need to handle variable traffic without over-provisioning.

Event-driven data processing

Processing file uploads, database changes, IoT events, or message queues, anything triggered by an event.

Scheduled jobs & automation

Cron tasks, report generation, data pipelines, cleanup routines. Pay only when they run.

Startups & MVPs

Ship fast with minimal infrastructure investment. Scale to zero when you're not yet at product-market fit.

Microservices

Independently deployable, independently scalable services communicating through events.

Mobile & IoT backends

Backends that need to handle unpredictable traffic from devices without pre-provisioned capacity.

Getting Started with Serverless

The Serverless Framework is the most widely adopted tool for building serverless applications. Three commands to go from zero to deployed.

1

Install

npm i -g serverless
2

Create a new service

serverless

Choose a template for your language and use case: Node.js API, Python scheduled task, Express app, and more.

3

Deploy

serverless deploy

The framework packages your code, provisions all cloud resources, and deploys everything in one command. Your endpoint URL appears in the terminal.

Learn More

Guides

  • The Ultimate Guide to AWS Lambda
  • Amazon DynamoDB and Serverless
  • Amazon API Gateway Guide
  • Browse all guides

Resources

  • Getting Started Tutorial
  • Serverless Framework Docs
  • Example Projects
  • Serverless Blog

Serverless FAQ

Common questions about serverless architecture and getting started.

What does "serverless" actually mean?
Serverless doesn't mean there are no servers. It means you don't manage them. The cloud provider handles all infrastructure: provisioning, scaling, patching, and availability. You write code, deploy it, and the provider runs it.
What is Function as a Service (FaaS)?
FaaS is the compute layer of serverless architecture. You deploy individual functions that run in response to events (HTTP requests, file uploads, database changes, schedules). AWS Lambda, Google Cloud Functions, and Azure Functions are the major FaaS platforms.
Is serverless cheaper than traditional hosting?
For most workloads, yes, often dramatically. You pay only for actual execution time, not for idle servers. A typical low-traffic API costs under $1/month on Lambda. However, at very high sustained throughput, containers or VMs can be more cost-effective.
What are the main drawbacks of serverless?
Cold starts add latency to the first request after idle periods (50ms–2s depending on runtime). There are execution time limits (15 minutes on AWS Lambda). Debugging distributed functions can be more complex. And at very high, sustained load, per-invocation pricing may exceed dedicated infrastructure costs.
Can I use serverless for a full application?
Yes. Modern serverless applications combine FaaS (Lambda) for compute, managed databases (DynamoDB, RDS), API Gateway for HTTP routing, S3 for storage, and services like SQS, SNS, and EventBridge for messaging. The Serverless Framework orchestrates all of these.
What is the Serverless Framework?
The Serverless Framework is the most widely adopted open-source tool for building and deploying serverless applications. It provides a simple YAML configuration, supports multiple cloud providers, and handles packaging, deployment, and infrastructure management.
Does serverless work with any programming language?
AWS Lambda natively supports Node.js, Python, Java, .NET, Ruby, and Go. Any other language (Rust, C++, etc.) can run via custom runtimes. Other providers have similar multi-language support.
Is serverless only for small projects?
No. Companies like Coca-Cola, Nordstrom, Expedia, and Reuters run production workloads on serverless. It scales from side projects to enterprise systems handling millions of requests per second.

Start Building Serverless

Deploy your first serverless application in minutes. No infrastructure to manage, no servers to provision.

Get Started FreeView Documentation