A backend is a set of promises: the answer will mean what it says, the data will not be lost or repeated, the person who asked is the person they claim to be, a retry will not cost money twice, and when something fails, the system will say so and recover. Those promises are made by small rules in the code. They are easy to get slightly wrong, and a slightly wrong rule shows up as a double charge, a forged login or a database in a half-changed state.
This is the fifteenth season of Sabi Logistics’ story, told from the server. Chidi, Ifeoma, Emeka, Halima and Musa bring you problems from the day-to-day work. Every case gives you generated requests, payments, logs or files, a starter script, and checks that read what your Python leaves behind. The functions that you write are also run on requests you cannot see, with the edges that real traffic finds first: an empty list, a limit that is too big, a cookie that expires this very second, a retry with a different amount.
You need nothing installed. Everything uses the Python standard library and runs in your browser (about 10 MB the first time). All data, accounts and people are invented: never use real ones.
What you need first
The case files use Python (it runs in your browser, nothing to install). You should be comfortable with variables, lists, dictionaries, loops and functions. If you are not yet, read the Python primer for the case files first (it takes about an hour), or take the free course Python for Case Files, which teaches the same ideas with nine small hands-on jobs.
Every lab starts with a how to do this lab panel: the steps, what each answer must look like (its shape, never its value), and the first lines of your own files. A wrong answer comes with a hint, and when every answer is right you can see one good way to write it. These labs teach the rules and edge cases behind the real tools, and how to automate an audit with a script. Each lesson ends with a box of the real commands that you would type on a real system.
What you will learn
- Route and answer: 404, 405, 401, 403 and the success codes, in an order that never leaks or confuses.
- Page through data: cursors that cannot repeat or skip a row, and limits that a client cannot abuse.
- Sign a cookie: an HMAC, a constant-time comparison and an expiry.
- Make retries safe: idempotency keys, so that a second tap does not take money twice.
- Rate-limit: a token bucket that allows bursts and stops floods.
- Use transactions: all or nothing, on a copy, with money that is never created or lost.
- Migrate safely: numbered files, checksums, and a planner that refuses to run on a wrong history.
- Retry politely: exponential backoff, a cap, dead jobs.
- Report an outage: p95, error rates and a report that can say “none”.
How it works
Each case is a call from someone at Sabi Logistics, a short brief, a lab with a starter script, a twist and a debrief that says what a senior backend developer would do next. Write the Python, run it, press Check my answers, and fix what the checker tells you. When every check passes you get a case reference to submit, and a short write-up to practise explaining your work to the person who asked for it.
The capstone asks you to design, build and test the safety rules of a small service of your own, and to say honestly what the rules do not protect against.