5 min read
Illustration of a cloud with a red lightning bolt inside
Image credits · Illustration: Global Pulse Daily

Serverless Computing Explained: Are There Really No Servers?

Serverless computing still runs on servers, but the cloud provider owns, patches and scales them while you pay only for the moments your code runs.

In short

Serverless computing is a cloud model where the provider runs and scales the servers for you. You deploy code that runs when an event triggers it and pay for the time it runs. Servers still exist, but you never have to provision, patch or manage them.

Table of contents 7 sections
Key takeaways
  • Serverless computing still runs on servers, but the provider provisions, patches and scales them for you.
  • You deploy small functions that run when an event such as a web request, file upload or timer triggers them.
  • Billing follows requests and execution time, so idle code costs nothing but steady heavy traffic can cost more than a server.
  • Cold starts, execution time limits, stateless functions and provider lock-in are the main trade-offs.
  • Start with one low-risk, event-driven job and measure cost and latency before moving more work.

Yes, there are servers. Serverless computing is a cloud model in which the provider owns, patches and scales the machines, and you supply only code that runs when an event triggers it. The name describes what you no longer manage, not what has disappeared.

AWS describes its Lambda service as a way to run code without provisioning or managing servers, with the platform handling server maintenance, capacity, scaling and patching. Microsoft's Azure Functions and Google Cloud's equivalent follow the same idea. You still pay for computing, but for the seconds your code runs rather than for a machine that sits waiting.

What changes compared with renting a server?

With a traditional virtual machine you pick a size, install an operating system, apply security updates and keep the machine running whether or not anyone visits. You size it for your busiest hour and pay for the quiet ones as well.

A simple example shows the gap. Suppose a small API is busy for two hours a day. A rented server bills for all 24 hours, and about 92 percent of that time is idle. A function bills only for the requests it actually handles.

With serverless computing you upload a function, a small piece of code with one job, and attach it to a trigger. The platform decides where it runs, starts as many copies as demand needs and removes them afterwards. Researchers at UC Berkeley compared the shift to the move from assembly language to high-level programming languages in a 2019 paper on serverless, arguing that it simplifies cloud programming.

The term covers two things. Function-as-a-service (FaaS), such as AWS Lambda or Azure Functions, runs your code on demand. Managed backend services, such as hosted databases, message queues and file storage, scale and bill by use without you operating any server. Most real applications mix both.

How does a serverless function run?

  1. An event arrives. It might be a web request through an API gateway, a file landing in storage, a message on a queue or a timer.
  2. The platform finds a ready execution environment or builds a new one: an isolated sandbox holding your code and its language runtime.
  3. Your handler function runs with the event as its input and does one job, such as resizing an image or writing a database row.
  4. The result goes back to the caller or on to the next service. The environment may stay warm for the next event or be discarded.
  5. The bill counts requests and execution time, not hours of machine ownership.

Web requests usually arrive through an interface, and our explainer on what an API is shows how those calls work. Isolation matters too, because many customers share the same hardware. AWS says Lambda uses Firecracker virtualization to give VM-level isolation between workloads, which is close to the ground covered in our guide to containers versus virtual machines.

Why do teams choose serverless computing?

  • No idle bill. A function nobody calls generates no compute charge, which suits spiky or unpredictable traffic.
  • Automatic scaling. The platform adds and removes copies as requests rise and fall, so there is no capacity planning.
  • Less operations work. The provider patches the infrastructure, so a small team can ship without running a server fleet.
  • A natural fit for events. The Azure Functions documentation lists file processing, scheduled tasks, web APIs and message queues among typical jobs.

What are the limits and trade-offs?

  • Cold starts. If no warm environment is free, the first request waits while a new one is created. The delay is usually short, but it can matter for latency-sensitive pages.
  • Time limits. Standard AWS Lambda event functions are capped at 15 minutes per invocation by default, so long-running jobs belong elsewhere.
  • No memory between calls. Environments can be reused, but AWS notes that state might not persist across invocations. Keep state in a database or storage service.
  • Provider lock-in. Triggers, permissions and deployment tools differ by cloud, so moving means rewriting the glue even when the business logic travels.
  • Harder debugging. One request can touch many small functions, so you need good logging and tracing to follow it.
  • Cost at scale. Steady, heavy traffic can cost more than a server that runs flat out all day.

Where does serverless computing sit next to IaaS, PaaS and containers?

Think of a ladder of responsibility. Infrastructure as a service rents you machines, platform as a service runs your whole application, and serverless goes one step further by running only the function or service you hand over. Our guide to IaaS, PaaS and SaaS explains the lower rungs.

Containers, managed by tools such as Kubernetes, give you more control and more chores: you choose the runtime, the sizes and the scaling rules. Some providers also run functions in locations close to users to cut round-trip time, a pattern described in our piece on edge computing.

Who is responsible for security in serverless computing?

The provider secures the data centres, the hosts and the runtime, and it patches the underlying systems. You remain responsible for your code, its dependencies, the permissions you grant each function and the secrets it uses. Give every function the narrowest permissions that let it work, because a compromised function can reach everything its role allows.

Is serverless computing right for your project?

It fits best when traffic is uneven, work is triggered by events and the team is small. It fits worst with long-running jobs, constant heavy load, tight latency budgets or software that needs a specific machine setup.

  • Start with one low-risk job, such as processing uploads or sending a scheduled report.
  • Set budget alerts and a concurrency limit before launch, so a bug or traffic spike cannot run up a surprise bill.
  • Keep business logic in plain code, separate from the provider-specific handler, so it can move later.
  • Measure cold-start delay and monthly cost for a month, then compare the total with a small always-on server before you commit more workloads.

Neither choice is permanent. Many teams run a mix: functions for bursty, event-driven work, and containers or virtual machines for the steady core of the service. The right split is the one that your measurements support, not the one that sounds most modern.

Frequently asked

Written by Said Dulevic

Our international desk covers the infrastructure, policy and people behind the technology shaping the world. Tips and corrections: newsroom@globalpulsedaily.com

More from this author

0 comments

Never published.
A quick check that you are not a script.
Comments are moderated. Links, contact details and abuse are removed.

No comments yet — be the first.