Skip to content
anythingai.space
Deployment & Deliverybeginner10 min · 9 steps

Serverless Functions

Run small pieces of code on events — uploads, queue messages, schedules, webhooks — that scale from zero and bill per execution, and know where they don't fit.

INGESTION LOAD OVER A MONTHfilesdays →200 PDFsarrive at onceAlways-on worker1 instancequeue: 199Rest of the monthpaying for idle
heavy workrequestdataresponseerror
1 / 9
ProblemStep 1 of 9

Bursty work on always-on servers

Document ingestion is lumpy: nothing for hours, then 200 PDFs arrive at once when a team migrates its knowledge base. An always-on worker sized for the burst sits idle most of the month; one sized for the average makes the burst wait for hours.

Small glue jobs — summarise a closed ticket, kick off a nightly re-index — each need a server too.

Lesson 9 of 20 in Deployment & Delivery