Design Product Catalogue with Real-Time Inventory Sync
Problem
Design Meesho's product catalogue and inventory system that serves millions of resellers and buyers simultaneously.
Requirements
Functional:
- Browse and search 10M+ SKUs
- Reseller sets custom price on catalogue products
- Real-time stock updates when orders are placed or cancelled
- Catalogue admin can add/update/remove products
Non-functional:
- 50M daily active users
- Search response < 200ms
- Inventory consistency: no oversell, eventual consistency on catalogue metadata acceptable
Discussion points
- Catalogue service vs inventory service separation
- Elasticsearch for search; Postgres for inventory
- Write-ahead log tailing for inventory sync to search index
- Caching strategy: what to cache, TTL, invalidation
- Handling catalogue updates that affect thousands of reseller listings
added …