Ravindra BagaleCourses & study guides Track your progress

Guides

Flipkart Architecture Explained: How Flipkart Handles Big Billion Days

Short answer: Flipkart runs its shopping services as many microservices in its own data centres (2023), and it moved its big data analytics platform to Google Cloud. All app traffic now enters through Nexus, a central API gateway built on Apache APISIX (2025). Fast data for search, pricing and recommendations lives in Aerospike on Kubernetes, handling about 90 million queries per second across three data centres during sales (2025).

Suppose you buy a phone in the Big Billion Days sale

The sale starts at midnight. You and millions of others open Flipkart and search for a new phone. In simple terms:

  1. Your app's request reaches Nexus, Flipkart's central API gateway, which checks login, sessions, bots and rate limits.
  2. Nexus routes it to the right microservice: search, product page, pricing, offers or cart.
  3. Search results, prices and offers are read from Aerospike clusters in under a millisecond.
  4. When sellers change prices or rules, the change is saved in MySQL and copied to Aerospike through Debezium and Kafka (change data capture).
  5. Clicks and ad views stream through Apache Flink, which handles about 1 million ad events per second (2026).
  6. Order and event data later lands in Flipkart's data platform on Google Cloud for reports.

What architecture style does Flipkart use?

Flipkart today is built on a set of shared platforms used by hundreds of services.

  1. One API gateway (2025): before Nexus, each team ran its own gateway features. Nexus, built on open-source APISIX with an etcd-based control plane, targets 99.99% availability and under 10 ms of extra p99 latency, and runs across several data centres.
  2. Aerospike as a platform (2025): a team of fewer than ten engineers runs Aerospike for 50+ use cases using the Aerospike Kubernetes Operator.
  3. Event-driven updates (2026): the rate card engine uses a transactional outbox: write to MySQL, emit an event, and update Aerospike through Debezium and Kafka.
  4. Stream processing (2026): the ads team uses Flink with RocksDB state for exactly-right ad budget counting at 1 million events per second.

Flipkart architecture diagram (public parts)

This diagram shows only what Flipkart or its partners have shared publicly. Press Play to follow a request step by step.

Watch the orange dot follow each numbered step.
Flipkart architecture from public information (simplified)Flipkart data centres (Chennai, Hyderabad and more)Google Cloud data platformSimplified; based on publicly shared information.Shopperapp or websiteNexus API gatewayAPISIX, etcdMicroservicessearch, cart, pricingAerospikeon Kubernetes, 90M QPSMySQLsource of truthKafka + FlinkCDC, streamingObservabilitygateway tracing, GrafanaGoogle Cloudanalytics, Pub/Sub
  1. You open Flipkart in the sale.
  2. Nexus checks your session and rate limits.
  3. Microservices build search results and the product page.
  4. Prices and offers come from Aerospike.
  5. Seller changes are stored in MySQL.
  6. Kafka carries changes; Flink counts ad events.
  7. Requests are traced and monitored.
  8. Event data flows to the Google Cloud data platform.
  9. Your order is placed.
Diagram 1: the public parts of Flipkart's architecture. Simplified; based only on publicly shared information. Open the diagram as an image (PNG) · WebP

What does Flipkart use? Main technologies

LayerWhat Flipkart uses (public)What it does in simple words
API gatewayNexus on Apache APISIX (2025)Auth, rate limits, routing
Fast dataAerospike on KubernetesSearch, pricing, recommendations
DatabaseMySQLSource of truth for configs
Change data captureDebezium + KafkaCopies changes to Aerospike
StreamingApache Flink with RocksDBReal-time ad counting
Data platformGoogle Cloud: Dataproc, Pub/SubAnalytics (10 PB/day batch)
HostingOwn data centresShopping services

Which cloud provider does Flipkart use?

Flipkart uses a mix:

  1. Its shopping services run in Flipkart's own data centres; its Aerospike setup spans three data centres.
  2. In 2023 Flipkart moved its data analytics platform (FDP) and content catalog object store to Google Cloud, moving from on-premises Kafka to Pub/Sub (130+ billion messages a day) and Hive to Dataproc.

How it started: MySQL and self-managed clusters

  1. Before the central platforms, Flipkart teams ran their own gateways and their own Aerospike clusters on virtual machines.
  2. Flipkart's data platform ran on self-managed Hadoop, Hive and Kafka in Chennai and Hyderabad until the 2023 move to Google Cloud.
  3. Earlier, Flipkart ran MySQL with high availability and studied replication lag.

How does Flipkart store data?

  1. Aerospike: fast key-value data, 170+ clusters (2025).
  2. MySQL: source of truth for configuration like rate cards.
  3. Google Cloud: about 10 PB batch and 2 PB near-real-time data processed daily.
  4. Product image storage and CDN details are not publicly shared.

How does Flipkart monitor its systems?

  1. Nexus adds central tracing and observability for every API request (2025).
  2. Aerospike clusters send metrics through Prometheus sidecars to Grafana (2025).
  3. The full company-wide monitoring stack is not publicly shared.

If we built an app like Flipkart on AWS (illustrative)

Please read this first

This section is a learning design by Ravindra Bagale. It is not Flipkart's real setup. Flipkart uses its own data centres plus Google Cloud. We use AWS here because it is what you learn in the AWS course.

Suppose you want to build "BazaarBharat", a shopping site for local sellers. Here is a simple AWS layout.

1. Network: VPC, subnets, route tables, gateways

  1. Create one VPC with CIDR 10.0.0.0/16 in the Mumbai region (ap-south-1).
  2. Use two Availability Zones (A and B), so one AZ failing does not stop the app.
  3. In each AZ make three subnets: public (load balancer, NAT gateway), private app (your code) and private data (databases, cache).
  4. Attach one internet gateway (IGW) to the VPC. Public route table: 0.0.0.0/0 → IGW. This route is what makes a subnet public.
  5. Private app route table: 0.0.0.0/0 → NAT gateway, so servers can download updates but nobody can connect in from the internet.
  6. Private data route table: only the local VPC route. Use VPC endpoints to reach S3, DynamoDB and SQS without going over the internet.

2. Compute: where the code runs

  1. ALB or API Gateway at the front.
  2. Shop services on EKS in private subnets.
  3. Order events through SQS (or MSK for Kafka).

3. Storage and databases

  1. S3 + CloudFront for product images.
  2. Aurora for orders.
  3. DynamoDB for cart and stock counts.
  4. ElastiCache for prices and offers, like Flipkart's Aerospike use.

4. Monitoring

  1. CloudWatch alarms on latency and errors.
  2. X-Ray traces.
  3. Load-test before sales.

Request flow diagram

Press Play. The numbered list below the diagram lights up with each step.

Watch the orange dot follow each numbered step.
If we built a Flipkart-like app on AWS (illustrative)AWS Region (for example ap-south-1, Mumbai)VPC 10.0.0.0/16Availability Zone AAvailability Zone BPublic subnet 10.0.1.0/24RT: 0.0.0.0/0 → IGWPublic subnet 10.0.2.0/24RT: 0.0.0.0/0 → IGWApp subnet 10.0.11.0/24RT: 0.0.0.0/0 → NATApp subnet 10.0.12.0/24RT: 0.0.0.0/0 → NATData subnet 10.0.21.0/24RT: local onlyData subnet 10.0.22.0/24RT: local onlyvia VPC endpointsIllustrative learning design only. This is NOT the company's real setup.Userphone appRoute 53DNS lookupCloudFrontCDN edge cacheAmazon S3product imagesIGWApplication Load Balancerspans both AZsNAT gatewayNAT gatewayShop APIEKS pods (auto scaling)Shop APIEKS pods (auto scaling)ElastiCacheprices, offers, sessionsAuroraorders, sellersElastiCacheprices, offers, sessionsAuroraread replicaSQSorder eventsDynamoDBcart, inventoryCloudWatch + X-Raymetrics, logs, traces
  1. You open BazaarBharat. Route 53 answers.
  2. Images load from CloudFront.
  3. CloudFront reads S3.
  4. API calls enter through the internet gateway.
  5. The ALB forwards to a pod.
  6. The shop API builds the page.
  7. Prices from ElastiCache.
  8. Orders in Aurora; cart in DynamoDB.
  9. An order event goes to SQS.
  10. CloudWatch watches.
  11. Your order is placed.
Diagram 2: an illustrative AWS design for learning. Flipkart does not necessarily run like this; see the sections above for what is publicly known. Open the diagram as an image (PNG) · WebP

Flipkart versus our AWS design

PartFlipkart (public info)Our AWS design
HostingOwn data centres + Google CloudAWS
GatewayNexus (APISIX)ALB / API Gateway
Fast dataAerospikeElastiCache, DynamoDB
DatabaseMySQLAurora
StreamingKafka, FlinkSQS / MSK
MonitoringPrometheus, GrafanaCloudWatch, X-Ray

Quick quiz: check what you learned

  1. What is Nexus at Flipkart?

    1. A central API gateway
    2. A delivery van app
    3. A payment card
    4. A database
    Show answer

    A. Nexus is Flipkart's central API gateway built on APISIX.

  2. Which database serves Flipkart's fast search and pricing data?

    1. Oracle
    2. Aerospike
    3. SQLite
    4. Neo4j
    Show answer

    B. Flipkart runs Aerospike at about 90 million queries per second.

  3. Where did Flipkart move its data analytics platform?

    1. Microsoft Azure
    2. AWS
    3. Google Cloud
    4. IBM Cloud
    Show answer

    C. Flipkart moved FDP to Google Cloud in 2023.

  4. What does Flink do for Flipkart Ads?

    1. Stores photos
    2. Sends emails
    3. Builds the app
    4. Counts ad events in real time
    Show answer

    D. Flink processes about 1 million ad events per second.