Serverless Computing
Also known as: Serverless, Function as a service, FaaS
Cloud execution model in which the provider runs code on demand and manages all servers, scaling and capacity, billing only for resources actually used.
Serverless computing lets developers run code without provisioning or managing the servers it runs on. Servers still exist, but the cloud provider handles them entirely: it allocates capacity when a request or event arrives, scales automatically from zero to many parallel instances and charges for execution time and resources consumed rather than for idle machines. The best-known form is function as a service, in which small units of code are triggered by events such as HTTP requests, file uploads, queue messages or schedules.
Amazon Web Services introduced AWS Lambda in 2014, popularizing the model; Google, Microsoft and others offer comparable function services, and edge platforms run functions in many locations close to users. The serverless label is also applied to managed databases, queues and storage that scale automatically and bill per use. Applications are typically assembled from functions connected to these managed services through events, webhooks and APIs, an architecture that suits irregular or bursty workloads and fits well with microservices.
Serverless shifts operational work to the provider but brings its own constraints. Functions are usually stateless and time-limited, so long-running jobs need other approaches. A cold start, the delay when a function runs after being idle, can add noticeable latency. Debugging and testing distributed, event-driven systems is harder than testing a single application, and heavy reliance on one provider's event model and services can deepen vendor Lock-In. At sustained high load, paying per invocation can cost more than running dedicated servers, so the model is a trade-off rather than a universal improvement.
Key points
- Serverless platforms manage servers, scaling and capacity, billing only for actual use.
- Function as a service runs small pieces of code in response to events.
- AWS Lambda, introduced in 2014, popularized the serverless model.
- Cold starts, execution limits and provider lock-in are common drawbacks.
Related entries
Cloud Computing
Delivery of computing resources such as servers, storage, databases and software over a network on demand, with users paying for what they use.
Microservices
Architectural style that builds an application as a suite of small, independently deployable services, each running its own process and owning its data.
Edge Computing
Distributed computing approach that processes data near where it is produced or used, rather than sending everything to distant centralized data centers.
Vendor Lock-In
Situation in which switching away from a supplier's product or service is so costly or difficult that customers become dependent on it.
Webhook
HTTP callback in which one system automatically sends data to another the moment a specific event occurs, instead of waiting to be asked.
API
Defined set of rules and interfaces through which one piece of software can request services or data from another without knowing its internals.
Latency
Time delay between a cause and its effect in a system, such as between sending a request and receiving the first part of the response.