Track 06 of 10APIs and servers
Track 06 of 10
APIs and servers
How programs talk to each other: designing APIs, surviving retries, middleware, and webhooks you can trust.
8 lessons · about 54 minutes
- What an API isOrder a pizza through a real-looking API, then break the request and read the errors.7 min
- REST and resourcesSix tasks, one pattern: pick the method and the URL for each.6 min
- Designing good APIsPage through a live feed with offsets and cursors, and give every error one shape.7 min
- Idempotency and retriesA lost response, a retry, a double charge. Then the one header that prevents it.6 min
- Versioning and breaking changesChange a response and watch whose code breaks, then ship it as /v2.6 min
- MiddlewarePut logging, CORS, rate limits and auth in order, then send requests through.8 min
- WebhooksPoll every minute or get told the moment it happens.6 min
- Securing webhooksForged, tampered, replayed, duplicated: real HMAC signatures sort them out.8 min