Backend from First Principles
9 topics · Stage 5
Complete
- 01Routing: How a Request Finds Its CodeHow a backend matches an HTTP method and URL to a handler, including path parameters, query parameters, nesting, versioning, and fallbacks.5 min
- 02Serialization and Deserialization: Data Crossing a BoundaryWhy applications turn values into bytes at boundaries, how JSON behaves in practice, and when a compact binary format is a better fit.5 min
- 03Validation and Transformation: Making Requests Safe to UseA practical pipeline for parsing, normalising, and validating untrusted input without mixing user-interface checks with business rules.4 min
- 04REST API Design: A Contract People Can GuessDesign resource-oriented HTTP APIs that use methods, status codes, pagination, and idempotency consistently enough that clients can predict them.5 min
- 05Backend Layers and Request Context: Keeping Work in Its PlaceHow controllers, services, repositories, middleware, and request context divide responsibilities so a backend remains understandable as it grows.4 min
- 06Authentication and Authorization: Identity, Permission, and SessionsSeparate identity from permission, understand sessions and token pairs, and build a request flow that fails safely without treating login as a solved problem.4 min
- 07PostgreSQL Foundations: Persistent Data You Can TrustLearn why a relational database earns its complexity, how to model data in PostgreSQL, and how constraints, migrations, queries, and indexes protect a backend.5 min
- 08Caching: Faster Reads, Carefully Chosen StalenessUse cache-aside, TTLs, and invalidation deliberately, while recognising cache misses, stale data, stampedes, and the cost of a second source of truth.5 min
- 09Task Queues and Background Jobs: Work Users Should Not Wait ForMove slow or failure-prone work out of the request path with queues, workers, acknowledgements, retries, idempotency, and observable job lifecycles.5 min