Serverless Systems for Bursty Workloads
Serverless systems run specific workloads on managed functions, queues and databases. Billing follows what executes and not what stays switched on, and they are sized only for jobs that suit the model.
Where it fits well
- Traffic that spikes sharply, such as a form that is busy only during a campaign
- Background work such as generating a report, resizing an image or sending reminders
- Scheduled tasks that run for a short time at fixed times
- A new feature whose eventual load cannot yet be predicted
What it is built from
Where it is the wrong choice
- A steady, high-throughput workload, where a fixed server costs less
- A process that must run for a long uninterrupted stretch
- A screen where the first response after a quiet spell has to be instant
What is watched once it runs
Invocation counts and duration are tracked against the cost they produce. Failure rates matter more here than on a server. A function that quietly times out leaves no machine for anybody to log into and inspect.
How the cost is built
Pricing differs by provider, but the ingredients are similar everywhere.
Protecting the rest of the system
Connections to databases and other clients are opened outside the handler so later calls on a warm instance reuse them. This cuts run time and spares the database.
- Set a concurrency limit so a burst cannot swamp the database
- Use a queue between the front door and slow work
- Add budget alerts so a loop that calls itself is stopped within a day
- Send failed messages to a dead-letter queue and alert on it
Moving a workload onto this model
Living with a serverless workload each week
A serverless workload sits idle until work arrives. The team around it checks results, not machines. Each week brings a short routine of reading counts, errors and costs, and the notes below describe it. Reports are short but exact, with dates.
Agree the evidence before signing off this part.
Use a representative scenario to decide what this part of the system must show and where review is still needed.
Where it fits well
Which observation would change the proposed scope?
For “Where it fits well”, observe someone completing the task with a representative example. Record where they stop, ask another person or re-enter information, then choose the smallest change whose result the team can verify.
Background reading: GOV.UK: researching user needs
Frequently asked questions
How do we know whether serverless systems suit our workload?
It depends on the shape of the load. Bursty, event-driven and scheduled work fits well, while a busy application running all day does not.
Will this make our cloud bill unpredictable?
It moves with usage. Budget alerts and per-function cost reports are set up at the same time, so a runaway loop is seen early.
Can a function reach our existing database?
Yes, over a private network connection. Connection limits need attention, because a burst of functions starting together can exhaust a database faster than one server would.
Who owns the function code and configuration?
You do. It sits in your repository and runs in your cloud account.
Is serverless cheaper than a normal server?
For idle or spiky workloads, yes. For steady load that keeps a server busy all day, a fixed server costs less. A comparison on your numbers settles it.
Can we run a website on serverless?
Yes, especially static or lightly dynamic sites with an API behind them. Heavy, constantly busy applications are a better fit for servers or containers.
How do we debug a function that fails?
Structured logs, request identifiers and tracing show the path of each call. Failed events are kept in a dead-letter queue so they can be replayed after a fix.
How do we cap what a function can spend?
Reserved concurrency caps the number of copies running at once, and budget alerts flag unusual spend. A provider’s anomaly detection can add a second net. Together they stop a runaway loop from running unnoticed.
Tell us what you need.
Tell us what your team does today, where work gets stuck and what you want to change.
What happens after you share your requirements
- We review your brief and the systems you already use.
- We clarify the workflow, missing information and the work to consider first.
- The proposed scope sets out the deliverables, responsibilities and dependencies.
- Review the scope and commercial terms before deciding whether to proceed.
Start with your requirements
Describe your current process, the people involved and the change you need. Start with the details you know; we can clarify the rest together.
Share your requirements