W1W2W3W4W5W6W7W8

Lessons

Week 1Project setup and rate limiting0/24
Week 2Restaurants and menus with MySQL0/20
Week 3Authentication, orders and Kafka events0/20
Week 4Customer application with Expo0/18
Week 5Live order tracking and rider management0/14
Week 6Performance, caching and load testing0/14
Week 7Deployment and production operations0/14
Week 8Advanced features and project documentation0/8
ReviewQuiz questions that are due
ResourcesReading list, by week

HTTP middleware

HTTP middleware is code that wraps an HTTP handler to perform work before or after the wrapped handler runs. It is commonly used for authentication, logging, request identification, and rate limiting.

Learn this concept

Lesson 1.16 · net/http handlers and middleware

Used in exercises

Exercise 1.18 · RateLimit HTTP middleware that returns 429 Exercise 1.19 · chi server with /healthz and a rate limit Exercise 1.30 · Optional: X-RateLimit response headers Exercise 3.5 · GET /v1/me: caller account Exercise 3.10 · POST /v1/orders: idempotent checkout Exercise 3.24 · POST /v1/auth/login: rate limit attempts Exercise 6.4 · API and worker metrics Exercise 6.6 · Request context and timeout layer Exercise 6.15 · Runtime feature switches
Prerequisite conceptsHTTP handlerGo interfacesGo functions
RelatedHTTP rate-limit identity keyHTTP 429 Too Many RequestsRetry-After headerChi router