The Challenge: High Cart Abandonment in Sub-Hour Commerce
Trendasli set out to build Ahmedabad's premier hyperlocal quick-commerce marketplace, promising sub-hour delivery for curated fashion jewellery, festival lifestyle products, and everyday essentials. However, operating at high concurrency during flash sales and peak festival hours revealed critical engineering obstacles:
- Cart Drop-Offs During High Concurrency: Traditional database row-locking caused checkout latency spikes exceeding 3.5 seconds, frustrating impatient mobile shoppers.
- Inventory Overselling: Multiple shoppers checking out the last remaining stock of a limited festival item caused race conditions and frequent post-purchase cancellations.
- Rider Dispatch Bottlenecks: Manual route planning delayed courier dispatch, failing to meet tight 45-minute delivery windows across western Ahmedabad pin codes.
The Technical Solution: Atomic Locks & Edge Route Dispatch
InfoCaptia engineered a modern, decoupled quick-commerce infrastructure leveraging Next.js on the presentation layer, Redis memory-locks for concurrency control, and an event-driven dispatch orchestrator:
- Atomic Stock Reservation (Redis Mutex): Items added to cart acquire a 10-minute temporary mutex lock in Redis before checkout. This prevents overselling while avoiding expensive PostgreSQL table locks.
- Instant One-Click UPI Checkout: We integrated native Razorpay intent flows, allowing customers to pay with Google Pay, PhonePe, or Paytm with sub-200ms confirmation webhooks.
- Geo-Fenced Dark-Store Routing: Pin-code geolocation algorithms instantly assign incoming orders to the nearest dark store with available stock, triggering automated picker slips in real time.
Engineering Highlights & Metrics
Within 60 days of deploying the optimized stack, Trendasli achieved exceptional operational benchmarks:
- +34% Checkout Conversion Rate: Sub-second page loads and frictionless UPI checkout recovered thousands of abandoned sessions.
- Sub-200ms Cart Latency: Peak-hour database loads decreased by 68% thanks to intelligent edge caching and Redis memory synchronization.
- Zero Concurrency Drift: Over 15,000+ orders processed across Diwali and festival seasons with zero double-booked SKUs.

