India’s Leading Domain & Web Hosting Provider
Auto-parts marketplace brings fitment search back under 600 ms after six slow releases
Online spare parts marketplace with 11 lakh SKUs and about 2,000 garages as B2B buyers · AWS Mumbai (ap-south-1) · 5 weeks
As-is situation
Customers search by vehicle make, model and year to find compatible parts. The fitment search ran on Amazon OpenSearch Service with a catalogue API on ECS and Aurora PostgreSQL behind it. Over six releases, p95 search latency had risen from 450 ms to 2.8 s, and garage buyers complained that the app timed out on slow networks. Nobody had compared latency across releases. The team planned to double the OpenSearch cluster ahead of the festive sale, without knowing whether it was the bottleneck.
- p95 fitment search latency drifted from 450 ms to 2.8 s over six releases
- Search-to-cart conversion dropped by about a fifth among garage buyers
- A planned doubling of the OpenSearch cluster rested on no measurement
Approach, tools and architecture
NTSPL added X-Ray tracing across the search path and compared per-release latency percentiles. Two causes emerged: a release that added a nested aggregation on every query, and an Aurora call per result to fetch live stock, which had grown with catalogue size. Developers moved stock to a cached field refreshed every two minutes and limited the aggregation to filtered views. We right-sized OpenSearch shards instead of doubling nodes, set a release gate on p95 search latency and ran a 1.5x festive-forecast load test before the sale.
Implementation approach
Measured results
Operational improvements
- Every release now reports p95 search latency against the previous build
- Monthly capacity reviews include OpenSearch shard size and JVM pressure
Cost considerations
Avoiding the cluster doubling saved the cost of six additional data nodes through the festive quarter. ElastiCache added a small node pair, far cheaper than the extra Aurora read replicas that had also been proposed.
Return on investment
Recovering conversion among garage buyers, who place larger repeat orders, was worth an estimated ₹30-40 lakh in monthly GMV. The avoided OpenSearch expansion alone covered the managed service fee for the full year, with the GMV gain as upside.