Skip to main content
GullySystem

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

Functions for event-driven work

Code runs on an upload, a queued message or a timer, and nothing sits idle in between. Idle time is not billed.

Managed queues and storage

Heavy work is handed to a queue, so the customer’s request finishes quickly and the rest completes behind it.

Managed databases

A database service is patched and scaled by the provider. Its price is compared with the cost of running the same database yourself.

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.

Number of invocations

Each run of a function counts. A busy endpoint called constantly adds up even when each call is tiny.

Duration and memory

Time multiplied by the memory you allocate drives the charge. Right-sizing memory lowers it.

Surrounding services

Gateways, queues, logs and data transfer carry their own charges and sometimes exceed the function cost.

Free allowances

Providers offer monthly free usage on some services, which helps small workloads. Your estimate states what it assumes.

Memory and processing power

On AWS Lambda, raising memory also raises the processor share, so a bigger setting can finish faster and cost the same or less. Testing different sizes finds the sweet spot.

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

Choose one candidate

A single report job or image task is a safer first step than a full rewrite.

Measure before and after

Run time, cost and error rate are compared with the old way, so the decision rests on evidence.

Keep a way back

The old path stays available until the new one has run through a full business cycle.

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.

Monday read of last week’s runs

The engineer opens the summary of executions, failures and average run time. A function that ran double the previous week is explained or investigated before it surprises the invoice. Check the number before the invoice does.

Burst day handled without staff

A promotion lands and uploads multiply for an hour. Nobody adds servers. The team afterwards checks that nothing queued for too long and that the database behind it stayed within its limits. No panic is needed.

Support asks about a missing report

A customer’s nightly report did not arrive. Support finds the scheduled run in the log and sees it timed out. The developer raises the time limit and reruns it for that customer. The fix is quick.

Quarterly decision on what stays

The owner reviews each workload on this model against its cost and its reliability. One that now runs all day may belong on a fixed server instead. The review records the decision and the reason. The review is written down.

Make an informed decision

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

FAQ

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.

Talk to us

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

  1. We review your brief and the systems you already use.
  2. We clarify the workflow, missing information and the work to consider first.
  3. The proposed scope sets out the deliverables, responsibilities and dependencies.
  4. 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