Overview
We measure real user timings and server traces before changing anything.
Most wins come from fewer round trips, smaller payloads and the right indexes.
Trade-offs
- Caching vs freshness
- Cache with explicit invalidation, not long guesses.
- Pagination vs completeness
- Page large lists; export when people need everything.
Architecture
Detect. An alert or report signals something may be wrong.
Illustrative diagram. For the end-to-end view, see the architecture on the Developers home.
Workflow
Measure
Baseline timings.
What we design for
- N+1 database queries
- Large unoptimised images
- Missing indexes
Index for a hot query
create index concurrently idx_orders_status_created
on orders (status, created_at desc);