Ask Interviewer These Questions First
Interactive probing questions with typable fields, automated conversions, mathematical proofs, and engine tradeoffs.
Is the data to be processed real-time, event-based, or ETL? Can it be hybrid?
What is your Daily Active Users (DAU) & Monthly Active Users (MAU)?
How many inbound requests does this application process, and what is the outbound fan-out to get total request hits?
What is the request & response payload size (KB/MB) and monthly storage accumulation?
What if requests fail? Should we use dual communication channels (API + Kafka Outbox) and retry jobs?
What is the read-to-write ratio of incoming operations?
What is your expected response time across p90, p95, and p99 latency percentiles?
How many records can be stored in the cache server for a day and for how many hours?
Is the data to be processed real-time, event-based, or ETL? Can it be hybrid?
"Should checkout confirm inventory synchronously with ACID guarantees, or can order fulfillment publish events to an asynchronous event bus?"
Why Hybrid is standard: Direct dual-writes to DB + Kafka risk partial failures (database commits but network drops before Kafka message sends). We solve this with the Transactional Outbox Pattern using Debezium CDC to tail the PostgreSQL WAL log into Kafka topics.
Connected System Flow Topology
System Architecture Subsystem Sizing & Tradeoffs
Two-column view: Left shows real-time derived capacity; Right shows mathematical proofs, probing questions, and library comparisons.
Tier 1 — User Ingress & Concurrency
Cloudflare Workers execute V8 isolates in 0ms cold starts for edge rate-limiting, whereas AWS CloudFront integrates natively with AWS WAF and Private Origin VPC links.
Tier 2 — Kafka Event Bus & Partitions
RabbitMQ provides complex routing keys and per-message ACKs but degrades under millions of queued items; Kafka uses append-only disk segments with zero-copy DMA (sendfile) for 10x higher throughput.
Tier 3 — Database & Redis Cache
Memcached is multi-threaded for pure key-value caching, but Redis Cluster provides persistence snapshots (AOF/RDB), atomic increment counters for flash-sale inventory, and pub/sub cache invalidation.