Skip to main content
What is Serverless?
  1. Glossary/

What is Serverless?

3 mins·
Ben Schmidt
Author
I am going to help you build the impossible.

The term serverless is slightly misleading. Servers still exist in this model. They are definitely running somewhere in a data center.

The difference is that you do not manage them.

Serverless is a cloud-computing execution model. The cloud provider acts as the server, dynamically managing the allocation of machine resources. Pricing is based on the actual amount of resources consumed by an application, rather than on pre-purchased units of capacity.

How it Works

#

In a traditional startup environment, you might provision a virtual server. You choose the RAM, the CPU, and the storage. You install the operating system. You set up the runtime environment.

Then you have to maintain it.

With serverless, you strip away all that administrative work. You write code as individual functions. You upload them to a provider like AWS Lambda, Azure Functions, or Google Cloud Functions.

The code sits dormant until an event triggers it. This could be an HTTP request or a database change. The provider spins up the necessary computing power instantly, executes the code, and then spins it down.

Comparing Serverless to Traditional Infrastructure

#

Think of traditional servers like renting a car. You pay a daily rate regardless of whether you are driving it or it is parked in a garage. You are paying for potential capacity.

Serverless is like a taxi. You only pay when the car is actually moving you toward your destination.

Pay only for what you use.
Pay only for what you use.

  • Cost: Traditional requires paying for idle time. Serverless charges per millisecond of execution.
  • Scalability: Traditional requires manual or scripted scaling rules to add more servers. Serverless scales automatically from zero to thousands of requests.
  • Maintenance: Traditional requires security patches and OS updates. Serverless offloads security patching to the provider.

Strategic Application for Startups

#

Founders often lack resources. Time and money are your scarcest assets. Serverless architecture addresses both.

It reduces the need to hire a dedicated DevOps engineer early in the company lifecycle. Your developers can focus entirely on business logic and features that add value to the customer.

It is ideal for sporadic traffic. If your app is used heavily during the day but ignored at night, you stop paying when your users go to sleep.

It allows for rapid prototyping. You can deploy a single function to test a feature without deploying an entire monolithic codebase.

Considerations and Trade-offs

#

This model is not perfect for every scenario. It introduces what is known as a cold start. If a function has not been used in a while, it may take a few seconds to spin up. This can impact user experience.

There is also the risk of vendor lock-in. Moving serverless code from one cloud provider to another is often more difficult than moving a containerized application.

You must ask the hard questions. Is your team ready to debug distributed systems? Is the complexity of microservices worth the savings on infrastructure?

Serverless offers a path to build rapidly. It allows you to validate ideas without a massive upfront investment in hardware or management.