Practice
Shared lab
One docker compose environment used by every practice section in the book. Install
Docker, then from this directory:
docker compose up -d # start
docker compose down # stop (data kept)
docker compose down -v # reset โ wipe all data
Services
| Service | Port | First needed | Used for |
|---|---|---|---|
Postgres (lab/lab, db lab) |
5432 | Part 5 | Relational data, transactions, indexing |
| Redis | 6379 | Part 6 | Caching, rate limiting, shared state |
| Kafka | 9092 | Part 7 | Messaging, event-driven practice |
Parts 1โ4 need no services โ only a terminal and one programming language of your choice.
Rules
- Practice sections state what to build against these services; the code is yours, in any language. No application code ships with the lab.
- Each practice starts from a clean state: reset with
down -vif a previous exercise left data behind. - The image tags are majors; exact versions are whatever Docker pulls at your setup time. Nothing in the book depends on a minor version.