Case study
Faster product pages for a live store
Moving an e-scooter shop's product pages onto a Meilisearch read model — product-page p50 from 437 to 69 ms on a replayed production hour.
- Company
- MyUrbanScoot
- Timeline
- 2026
- Role
- Freelance consultant · engineering lead
The challenge
Every product page view called the commerce backend for products and translations. Those calls were about three quarters of the backend's traffic, and the slow tail — p95 close to a second — reached shoppers. The fix had to land on a live store without changing content, prices or stock for any customer.
The approach
- Set a baseline first: replayed a real production hour against staging and recorded KPIs, so a change only counts when it moves outside the normal day-to-day range.
- Built a product-detail document in Meilisearch, kept current by one backend indexer, and rendered product pages from it, with side data (compatible vehicles, vinyls, upgrades, reviews) from cached routes.
- Checked parity before switching: a script compared the new documents with the old API on 100 URLs from that production hour, in four languages.
- Rolled it out in stages — listings and search first, behind a per-environment switch, then product pages — and compared the same replayed hour on the old and new code.
The outcome
- On the same replayed production hour: backend requests −74%, product-page p50 437 → 69 ms and p95 943 → 257 ms, with zero errors on either side.
- In live production since then — a week in November against the 24 September baseline — backend calls per storefront request fell from 1.33 to 0.12 (−91%) while storefront traffic grew, with the read model plus the page caching and CDN work that followed.
- Product catalogue calls from product pages −94%, and their CPU time −92%.
- Parity: every live product in the sample matched the old API on content, prices, stock, images and translations.
- Related work on the same store: storefront builds ~10 → ~5 min, the image 2.9 → 1.1 GB, and page-cache entries 5–8× smaller in Redis.
What's still open
The read model fixed the common case, not everything: the backend still has rare, very slow requests, and those still need tracing.
Stack
MeilisearchMedusaNext.jsRedisPostgreSQL
Have a similar problem?
Tell me what you're dealing with and I'll tell you honestly whether I can help.
Get in touch