X (Twitter)
ExampleTurn the “how we cut our API latency in half” article into a 6-post thread
Example estimate: one of your three most-viewed posts of the month, and 20–40 visits to the article
First deliverable, ready to paste
1/ We cut Quillbase's API latency from 480 ms to 210 ms (p95). No new servers. Here's what actually worked 🧵
2/ First surprise: 60% of the time was spent serializing JSON we never used. We trimmed responses to the fields clients ask for.
3/ Second: one Postgres index on (workspace_id, updated_at). Biggest win for 3 lines of SQL.
4/ Third: caching auth checks for 30 seconds instead of hitting the database on every call.
5/ What didn't work: a bigger instance. +40% cost, −5% latency.
6/ Full write-up, with the queries: [link to the article]




