Build for ALL of Your Users
summary
A case study of a chat API shows websockets for realtime plus REST endpoints that mirror the database, forcing clients to fetch profile photos via a photo ID then an S3 URL that may change, which in the worst case requires 765 requests when a 256‑member group adds someone and balloons costs and latency. Recommendations: architect with intent (batch endpoints or embed URLs), dogfood and build sample apps, provide open API spec to SDK generation (liblab style), run user interviews and measure typical/worst latencies.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:31APIs lack user-centric design
- 3:18Hypothetical API scenario
- 4:24Real-time chat API structure
- 6:29Profile photos expose API flaws
- 8:15Engineering challenges from API limits
- 10:47Building APIs for all users
- 12:56Improving API design steps
- 14:43Dogfooding and samples
- 15:43SDKs and tooling
- 16:47Closing remarks








