Preparing your design workspace

Loading the problem and your latest saved attempt…

Design an Event Ingestion Platform

Design a multi-tenant platform that durably accepts versioned events and delivers replayable streams to downstream consumers.

Problem statement

For this exercise, assume authenticated product services submit versioned event batches to a shared ingestion platform. A successful acknowledgement means the batch survives a single-node failure and will not be silently lost. Producers attach a stable event identifier and tenant-defined partition key. Retries of the same event identifier within seven days represent one logical event, and ordering is guaranteed only within one partition key. Downstream applications consume events through durable subscriptions with at-least-once delivery, persist checkpoints, and may replay retained raw events from an earlier checkpoint. The platform sustains 500,000 events per second, absorbs two million events per second for five-minute bursts, and handles 2 KiB events on average. It provides 99.99% ingestion availability, acknowledges durable acceptance within one second at p99, and makes 99% of accepted events available to live subscribers within ten seconds. Raw events remain replayable for seven days. One tenant's malformed traffic or burst must not exhaust other tenants' reserved capacity; overload returns an explicit retryable result rather than false acceptance. Producers own business schemas, while the platform validates envelopes and registered schema versions. Analytics queries, transformations, dashboards, and exactly-once external side effects are outside scope.

What to build

  1. A producer can submit a versioned event batch and receive accepted, invalid, throttled, or uncertain outcomes with safe same-event retries.
  2. A consumer can read a tenant-authorized subscription with at-least-once delivery and durably advance its checkpoint.
  3. An authorized consumer can reset or create a subscription from a retained checkpoint or time boundary and replay raw accepted events.
  4. Operators can register schema versions and tenant quotas, reject malformed envelopes, and observe ingestion lag, throttling, and delivery health.

At scalePractice assumption

  • Sustain 500,000 events per second and absorb two million events per second for five-minute bursts at an average event size of 2 KiB.
  • Provide 99.99% ingestion availability and durable acknowledgement within one second at p99.
  • Make 99% of accepted events available to live subscribers within ten seconds while preserving per-partition order.
  • Retain raw events and producer deduplication keys for seven days, with tenant-isolated quotas and backpressure.