Nodea — logo

Serverless computing

Serverless computing is a model for executing code in the cloud in which the developer supplies only the application logic, while the provider manages all the infrastructure — servers, operating system, scaling and availability. Despite the name, servers still exist; what changes is the programmer's perspective: they stop thinking about machines and think only about code and the events that trigger it.

How serverless computing works

The most popular realization of this model is Functions as a Service (FaaS) — individual pieces of code triggered by an event: an HTTP request through an API, a file upload, a database write or a message on a queue. The function starts on demand, performs its task and terminates, while the provider automatically scales the number of concurrent instances with the load — from zero to thousands of invocations and back.

The foundation is pay-per-use billing: you pay for actual execution time and the number of invocations, not for a permanently rented machine. When the code is idle, the cost is zero. The price for that convenience is the cold-start latency (spinning up an idle function), execution time limits, and tighter coupling to a specific provider's ecosystem.

Practical application

Serverless is a great fit for event-driven tasks and irregular load: mobile app backends, image processing after upload, form handling, webhooks, scheduled jobs and lightweight APIs. Well-known services include AWS Lambda, Google Cloud Functions and Azure Functions. The model speeds up development because it frees the DevOps team from worrying about servers, and it handles spiky traffic beautifully. It does not replace everything, though — services with steady, heavy load or a need for full control over the environment often remain faster and cheaper on a dedicated VPS. In practice serverless tends to complement, rather than succeed, traditional infrastructure.

Powiązane pojęcia

Najczęstsze pytania

Are there really no servers in serverless?

Servers still exist — the name refers to the developer's perspective, who no longer has to provision, configure or scale them. The provider manages all the infrastructure behind the scenes. The programmer focuses solely on the code and the application logic, not on the machines it runs on.

When is serverless a poor fit?

The model can be uneconomical for steady, high and predictable traffic, where a traditional server works out cheaper. Long-running tasks are also problematic due to execution time limits, as is cold-start latency on the first invocation. Applications needing full control over the environment usually run better on a VPS.