All articles

What is a serverless web application? A plain guide

A serverless web application runs on cloud services that manage the servers for you. See how it works, the pros and cons, and when a UK business should use one.

Chunky blue cloud-shaped block with an orange cable plugged into its base, standing on a polished concrete floor by a brick

A serverless web application is a website or web app that runs on cloud services where the provider manages and scales the servers. Your developers write the code and the provider runs it only when needed, so you pay for actual use rather than for idle servers.

This kind of website or web app is built on cloud services where the provider manages the servers and scales them automatically, so you pay only for the code that actually runs. The name is a little misleading, and we explain why below.

At a glance

  • Serverless does not mean there are no servers; the cloud provider manages them so you do not have to, as IBM explains.
  • Serverless apps follow an event, execute, scale down flow: code runs when triggered and scales back when idle, according to the Serverless Framework.
  • Pricing is based on the resources actually consumed, with nothing allocated to the app when it is not in use.
  • Typical parts are a frontend, an API gateway, functions (such as AWS Lambda) and a managed database (such as DynamoDB).
  • PS Up North has designed and built bespoke software since 2009.

What is a serverless web application?

With serverless, the cloud provider runs and scales the servers while you write and deploy the code. Servers still exist; you simply do not buy, configure or patch them yourself.

Think about the old way of doing things. You rent or buy a server, install the software, apply security updates, watch the disk space and pay for it every month whether anyone visits or not. With a serverless approach, that whole layer becomes the provider’s job. Your team hands over the code and the provider decides where and when it runs.

Several parts of a site can be serverless:

  • The backend: the code that handles logins, orders, bookings or form submissions.
  • APIs: the connection points (an API is a set of rules that lets one piece of software talk to another) that the front of your site uses to fetch and save information.
  • The database: managed database services that grow and shrink without you configuring anything.
  • Sometimes the frontend: the pages visitors see can be stored as files and delivered from the provider’s network, with no server of your own involved.

How does a serverless web application work?

In practice it works in three steps: an event, an execution and a scale down. A visitor does something, a small piece of code (a function) runs in response, and resources drop back to zero when nobody is using the site.

A red push button linked by a pink ribbon to a blue block, then a row of yellow cubes shrinking in size, like an event
A trigger, a single step and a row of results that grow and shrink show the event, execution and scale down flow.

Here is a worked example using an online shop. A customer clicks “Add to basket”.

  1. Frontend: the page in the customer’s browser sends a request.
  2. API gateway: this front door receives the request, checks it is allowed and passes it to the right function.
  3. Function: a small block of code, for example on AWS Lambda, runs. It checks stock and updates the basket.
  4. Database: the function reads from and writes to a managed database such as DynamoDB.
  5. Response: the result goes back through the gateway and the basket updates on screen.

Once the work is done, nothing is left running for that request. If a thousand customers click at once, the provider runs many copies of the function side by side. At 3am with no visitors? Nothing runs and nothing is billed for compute.

Cold starts

A cold start is the short delay that can happen when a function has not run recently and the provider needs a moment to prepare it. Most visitors never notice, but it is worth planning for on pages where speed matters a great deal.

Stateless by design

Functions are stateless, meaning they do not remember anything between runs. Anything that must be kept, such as a basket, an order or a user profile, lives in a managed database or storage service.

What are examples of serverless technologies?

The main serverless services fall into four groups: compute, API and app services, data and storage, and messaging. Recognising the names helps when a developer or supplier mentions them.

Compute

  • AWS Lambda
  • Azure Functions
  • Google Cloud Functions
  • Cloudflare Workers

API and app services

  • Amazon API Gateway
  • AWS AppSync
  • AWS Amplify

Data and storage

  • DynamoDB
  • Aurora Serverless
  • Object storage such as Amazon S3

Messaging

  • Queue and event services such as Amazon SQS, Amazon SNS and Amazon EventBridge, which pass messages between parts of an app

People often ask which AWS services are serverless. The list above covers the usual ones. AWS Fargate is a close relation: it runs containers without you managing the underlying servers, though you still package and size the containers yourself. Service names and features change, so it is worth checking them against the current AWS documentation before any build.

Is serverless the same as cloud?

No. Serverless is one way of using the cloud. The cloud also includes virtual machines and containers, which you manage to a much greater degree.

Wooden shelf unit holding a large steel box on the bottom shelf, an orange crate in the middle and a small green cube on top.
Each shelf holds a smaller, lighter box, much like the spectrum of control from virtual machines to serverless.

It helps to see it as a spectrum of control. At one end you manage almost everything and have the most freedom. At the other end, the provider manages almost everything. You have the least to look after.

Option Who manages what How you pay
Virtual machine You manage the operating system, updates and software; the provider manages the hardware Per hour or month while it is running
Container You package and manage the app and its setup; the provider can manage the hosting layer Usually for the capacity you set aside
Platform as a service The provider manages the platform; you deploy your app Usually a plan based on size or capacity
Serverless Servers and scaling are managed by the provider; you supply the code For actual use, such as requests and run time

Serverless leans heavily on managed services, which are tools the provider runs and looks after for you, such as databases, login systems and queues. The more of these you use, the less you maintain yourself.

Serverless vs traditional hosting: what is the difference?

Serverless scales automatically and bills per use, while traditional hosting means a fixed server that you size, patch and pay for all the time. Each suits different projects.

Split view: one large red industrial fan spinning on the left, a row of small blue desk fans on the right with only the
One big machine that is always running, set against many small units where only the ones needed are switched on.
Factor Traditional hosting Serverless
Setup and maintenance You or your host set up, patch and monitor the server Your provider looks after the servers; you maintain your code
Scaling Manual, or planned in advance by adding capacity Automatic, up and down
Pricing model Fixed monthly or hourly fee, used or not Pay for what runs
Performance consistency Steady, as the server is always on Usually good, though cold starts can add a short delay
Control High: you choose the software and settings Lower: you work within the provider’s limits
Vendor lock-in Lower, as a server is easier to move Higher, as code often depends on one provider’s services
Best fit Steady workloads and software that needs full control Variable traffic, new APIs and event-driven features

What are the benefits of a serverless web application?

Benefits include no server maintenance, automatic scaling, paying for what you use and faster delivery of new features. Each one matters differently depending on your business.

  • Cost that fits the traffic. A small booking system for a local firm may be quiet overnight and at weekends. You are not paying for a server to sit idle.
  • Busy periods handled without action. If a seasonal campaign or a mention in the press sends a spike of visitors, the provider adds capacity automatically.
  • More time on features. Developers spend less time on updates and server upkeep, and more on what your customers see and use.
  • Built-in resilience. Providers run their services across several locations, so a single hardware fault is less likely to take your app down.

What are the drawbacks and risks?

Drawbacks include cold start delays, vendor lock-in, harder debugging and costs that can climb at very high steady traffic. Serverless is not right for every project.

  • Cold starts: occasional short delays, which matter more for pages that must respond instantly.
  • Vendor lock-in: code built around one provider’s services can take real effort to move elsewhere.
  • Debugging and monitoring: an app split into many small functions behaves differently from one big program, so testing and monitoring need a different approach and the right tools from day one.
  • Cost at scale: long running or constant heavy workloads may be cheaper on fixed servers, because you pay per run and the runs never stop.

Data location and UK GDPR

When we would not recommend it

We would steer you away from serverless for software with a constant, heavy load, for anything needing specialist software installed on the server, and for projects where you must be able to move provider easily. A plain virtual machine or container can be the better answer.

Do big companies use serverless? Does Netflix use Lambda?

Yes, large companies use serverless for parts of their systems. Netflix is widely reported to have used AWS Lambda for some internal automation, though we would check the current AWS or Netflix material before relying on the detail.

The honest picture is that most firms mix approaches. They run serverless functions alongside containers and traditional servers, choosing whichever suits each job. Typical serverless uses include:

  • APIs that power websites and mobile apps
  • Handling form submissions and sending emails
  • Resizing and processing images
  • Scheduled jobs, such as nightly reports
  • AI features, such as summarising text or classifying enquiries as they arrive

That last one is where we do a lot of thinking. We add practical AI to the websites and systems businesses already run, and small event-driven functions are often a tidy way to do it without rebuilding anything.

When should a UK business choose serverless?

Choose serverless when traffic is variable, you want low running overhead and you are building new features or APIs. Avoid it for steady heavy workloads or tight control needs.

Good fit:

  • Traffic that rises and falls, such as seasonal campaigns, events or booking peaks
  • A new product or feature where you want to start small and grow
  • An API behind a website or app
  • Automations and scheduled tasks

Poor fit:

  • Constant, heavy processing around the clock
  • Software that needs a specific server setup
  • Projects where moving between providers must stay cheap and simple

PS Up North designs and builds bespoke software. A sensible first step is an architecture review: a short look at what you run today, how your traffic behaves and what you want to build, before anyone decides serverless is the answer.

We would be glad to talk it through. If you are in Leeds, elsewhere in Yorkshire or running a UK business online, get in touch with the PS Up North team at psupnorth.co.uk. We will give you our honest view on whether serverless suits your project.

Frequently asked questions

Does serverless mean there are no servers?

No. Serverless web applications still run on servers, but the cloud provider owns, manages and scales them so your team does not have to. The name describes your experience of them, not the reality underneath.

Is a serverless web application cheaper than traditional hosting?

It can be, particularly for quiet or spiky traffic, because you pay only for the code that runs. For constant heavy workloads, fixed servers can work out cheaper, so the answer depends on how your traffic behaves.

Can a serverless app handle a lot of traffic?

Yes. Serverless services scale automatically by running more copies of your functions as demand grows. Providers do set limits, and your database and any connected systems also need to cope, so load testing before a big launch is wise.

What is a cold start in serverless?

A cold start is the short delay when a function has not run recently and the provider has to prepare it before it can respond. It affects only some requests and can be reduced with careful design.

Is serverless secure?

Serverless can be secure, as the provider looks after the underlying servers and their patching. You are still responsible for your own code, access permissions and data protection, including choosing suitable regions for UK GDPR.

Can I move an existing website to serverless?

Often, yes, though it depends on how the site is built. Some sites move in stages, for example by shifting the frontend first and replacing parts of the backend with functions over time. An architecture review will show what is practical.

What programming languages can be used for serverless?

Most major languages are supported, including JavaScript, TypeScript, Python, Java, C# and Go on the main platforms. Exact support varies by provider, so check the current documentation for the service you plan to use.

Outgrown off‑the‑shelf?

Tell us how your business works. We'll tell you honestly what we'd build.

Start a project