HTTP & APIs
4 guidesHTTP semantics, API contracts, caching, and reliable clients.
HTTP Foundations: Methods, Status Codes, and Representation Boundaries
Design a predictable request and response contract by distinguishing resources, representations, safe methods, and retryable operations.
Reliable API Clients: Pagination, Conditional Requests, and Retry Budgets
Keep list traversal stable, validate cached representations, and bound retry work when networks fail at ambiguous points.
HTTP conditional writes: detect an edit based on stale state
Use strong validators and atomic preconditions to prevent lost updates without confusing them with retry identity.
HTTP range requests: resume transfers without stitching different files
Use validators, Content-Range, and 416 handling to make partial downloads coherent.