Backend District · the course
Learn backend by playing.
Nine districts take you from how the web works to architecture and scaling, with an optional Python warm-up first. You write small snippets inside a real FastAPI server and watch live traffic hit your code. 4 districts and the Academy are playable today; the rest are being built.
How every topic works
Step 1
Briefing
A few minutes of reading with quick checks. Byte explains the idea with real code.
Step 2
Practice games
Edit a small snippet inside a working FastAPI app and watch requests pass (2xx), bounce (4xx) or crash (5xx). Runs in your browser.
Step 3
Checkpoint
A scored run with hidden requests, re-graded on our server. Pass it to open the next chapter. Every retry is a new variant.
The districts
- Optional Playable now
The Academy
Python survival kit
- Variables & types
- Lists & dicts
- Functions
- Exceptions
- Classes
- async/await
- Level 0 Playable now
The Signal Tower
How the web works
- Client vs server
- HTTP anatomy
- Methods
- Status codes
- JSON
- REST
- Level 1 Playable now
The Router Station
Routing & request handling
- Routes
- Path params
- Query params
- Request body
- APIRouter
- Versioning
- Level 2 Playable now
The Gatehouse
Validation & errors
- Never trust input
- Pydantic models
- Constraints
- Custom validators
- Error codes
- Level 3 Playable now
The Data Vaults
Databases, modeling & ORM
- SQL
- JOINs
- Modeling
- SQLAlchemy
- N+1
- Transactions
- Indexes
- Level 4 Under construction
The Citadel
Authentication & authorization
- Hashing
- JWT
- Refresh tokens
- RBAC
- Ownership checks
- Level 5 Under construction
The Speedway
Performance & caching
- Pagination
- Caching
- TTL
- Redis
- Rate limiting
- Level 6 Under construction
The Factory
Async & background work
- Background tasks
- Queues
- Retries
- Idempotency
- Webhooks
- Cron
- Level 7 Under construction
The Control Room
Production skills
- Logs
- Testing
- Config & secrets
- OWASP
- Docker
- Deploys
- Level 8 Under construction
The Skyline
Architecture & scaling
- Scaling
- Load balancers
- Replicas
- CDNs
- WebSockets
- System design