Flipkart Marketplace Platform · View 13 of 25 · 4 · Data
The listing is the architecture
- One product carries many seller listings; price, stock, Buy Box score and commission all hang off the listing, never off the product
- order_line references the listing, not the product, so a settlement dispute can always name the seller and the offer
- inventory_ledger is append-only per listing per node — the current count is a projection, and the ledger is the truth
Sharding and consistency
- Orders, lines and payments shard on a key derived from order_id so a whole order is one shard and one transaction
- Settlement entries shard by seller for the payout run, and are reconciled against the order shard nightly
- Catalog and listing documents live in Cosmos DB; the relational shape here is the contract, not the storage
Deliberately omitted
- Reviews, Q&A, wishlists, coupons and cart, which are high-volume but not financially load-bearing
- Attribute and variant modelling, which is a category-by-category schema exercise
- Audit and event tables, which mirror every entity here