Part 3 · APIs · frameworks · SQL · auth · caching · queues · async · resilience

Backend engineering

The server side of full-stack work: designing APIs, modelling data, securing access and keeping services fast and reliable. Every AI integration lives here.

L1 · Junior engineerL2 · Mid-level engineer
0 of 8 lessons · 40 min

An LLM feature is, in practice, a backend feature: an endpoint that authenticates a user, loads data, calls an external service, validates the result, stores it and returns it, all under latency, cost and failure constraints.

This part builds that skill set in the order you need it. Python examples use FastAPI and Django, the two most common frameworks for AI backends; the ideas transfer to any stack.

Lessons in this part

  1. 3.1API designDesigning HTTP APIs that clients can rely on: resources, errors, pagination, versioning, idempotency and contracts.L1 · Junior engineer5 min
  2. 3.2Python web frameworks: FastAPI, Django, FlaskWhat each framework is for, how requests flow through them, dependency injection and lifespan in FastAPI, and when to choose which.L1 · Junior engineer5 min
  3. 3.3Relational databases and SQLModelling data in Postgres, writing correct SQL, indexing for real queries, transactions and isolation, and reading query plans.L1 · Junior engineer5 min
  4. 3.4Authentication and authorizationProving who a user is (sessions, JWTs, OAuth) and deciding what they may do (roles, ownership checks, row-level security), without the classic holes.L2 · Mid-level engineer5 min
  5. 3.5Caching and RedisWhere to cache, how to invalidate, how to avoid stampedes, and the Redis data structures behind sessions, rate limits and queues.L2 · Mid-level engineer5 min
  6. 3.6Background jobs and queuesMoving slow or unreliable work off the request path with Celery, SQS or Redis queues, and making jobs idempotent, retryable and observable.L2 · Mid-level engineer5 min
  7. 3.7Async, concurrency and performanceConcurrency models in Python and Node, finding the real bottleneck, and the backend fundamentals that AI work tends to crowd out.L2 · Mid-level engineer5 min
  8. 3.8Resilience: timeouts, retries, circuit breakersHow to call unreliable dependencies without letting their failures become yours, the foundation for every LLM integration.L2 · Mid-level engineer5 min