Definitions · Service models

What is serverless computing?

What is serverless computing? Code run in short-lived executions by a cloud provider and billed while it runs: how it works, its limits, its listings.

Server racks in a provider data centre.
Server racks in a provider hall.

Serverless computing is a model in which a cloud provider runs application code in short-lived executions triggered by events, and charges only for the time those executions consume. The caller deploys a function or a handler; the provider decides where and how often it runs.

The name is a statement about responsibility, not about hardware. Servers very much exist - they are simply somebody else's problem: allocation, patching, redundancy and idle capacity all sit with the provider. What remains for the developer is the code, its dependencies and the events it answers, which is why the model is often described as pricing execution rather than renting capacity.

How an execution works

A serverless deployment is a small number of moving parts:

  • A trigger - an HTTP request, a queued message, a stored-object event, or a schedule.
  • The package - the function and its dependencies, uploaded once and versioned.
  • A lifetime - each invocation starts, runs, produces a result or a side effect, then stops.
  • Limits - memory and a maximum duration, set per function and enforced by the platform.
  • Outputs - a response, a record written elsewhere, or another event raised downstream.

Ephemeral execution is the design constraint behind all five. Nothing written to the local disk survives the next invocation, so state lives in databases, object stores or caches outside the function, and work that cannot finish inside the time limit has to be split or moved to a longer-running model. Cold starts - the first invocation after idle - are the latency cost of not owning the machines.

Where serverless fits, and where it stops

Event-driven glue suits the model well: webhooks, scheduled maintenance, image or document processing, API fronts behind bursty traffic, and coordination logic between services. The appeal is that a function handling rare events costs nothing while it waits, and no capacity planning is required for the quiet periods.

It fits less well for long-running numerical work, tightly coupled cluster jobs, workloads needing specialised hardware or persistent high throughput, and anything that must hold a process open for hours. Those belong on machines you rent directly or on a scheduled cluster. Packaging and moving between environments is simpler when the unit is a container, which is how several platforms accept serverless-style deployments as well.

Cost behaviour deserves its own note, because it inverts the usual worry. Nothing is reserved, so a quiet system costs close to nothing while a loop that never terminates bills itself without a ceiling unless someone set one. Budgets, alarms and per-function limits belong to the design of the deployment rather than to its administration, and the teams that skip them are the ones who discover the bill before the code.

Serverless inside the service models

Serverless is usually placed alongside PaaS rather than beside it: the provider operates even more of the stack, down to deciding where code executes. The trade is the same one, pushed further - more convenience and finer-grained billing in exchange for less control over placement, timing and the environment beneath the handler.

Because billing follows execution rather than allocation, the model has different questions attached to it: what an invocation costs, how often a trigger fires, and what runaway looks like when a loop bills itself. For how the three traditional models compare, see IaaS, PaaS and SaaS on VirtEngine.

The same handler can be packaged and run on a container platform as well, which blurs the category in a useful way: what separates the options is who owns the idle time between executions. That question - reserving capacity in advance or paying only while code runs - is the same one a tenant answers whenever it moves between layers, and it is worth answering deliberately from the workload's shape rather than by adopting whichever option a project happened to start with.

Execution capacity as a listing

On VirtEngine, a serverless-style offering is published with its runtimes, limits and price per unit of execution spelled out, so a buyer can see what an event-heavy workload will cost before deploying it. The tenant funds an escrow account when ordering; the provider can verify that the budget exists before accepting the lease.

Metering then follows the executions themselves: each invocation contributes a signed usage record, those records accumulate over the lease, and validated line items are taken from escrow once the dispute window closes. Spending is bounded by the escrow balance rather than by an open account, and identity verification on both sides happens before the first invocation.

In practice

A provider offers event-driven handlers with published runtimes and limits; tenants escrow a budget up front and settle only the invocations their triggers actually produced.

Platform services on the market →

Questions

Asked about what is serverless computing

Does serverless mean there are no servers?

No. It means the servers belong to the provider rather than to you. Allocation, patching, redundancy and idle capacity are handled by the platform, leaving you responsible only for the code and its triggers.

What is a cold start in serverless computing?

It is the extra latency on an invocation that arrives after a function has been idle, because the platform has to spin execution capacity back up. Applications with strict latency budgets address it with provisioned concurrency or by keeping the function warm.

When is serverless the wrong choice?

For long-running jobs, tightly coupled cluster work, or workloads needing specialised hardware and sustained throughput. Serverless is built for short, event-driven executions, and forcing other shapes into it produces workarounds rather than savings.

How is serverless usage metered on a marketplace?

Per execution: the platform records how long each invocation ran and reports those readings as signed usage records. They settle against the tenant's escrow after a dispute window, so billing tracks real consumption rather than reserved capacity.

More questions → FAQ