Declarative Event Streaming on Kubernetes at a Billion Events a Day
Fabric Event Streams (FES) is Zalando's declarative streaming platform. A Kotlin Kubernetes operator turns FabricEventStream resources into stateless connector pods. Progress lives only in the source (Postgres LSNs on replication slots, DynamoDB lease checkpoints, Nakadi cursors) and advances only after sink confirmation, so the platform survived a 3h20m Nakadi outage without losing events. The tradeoffs are at-least-once delivery, CrashLoopBackOff as the retry loop, and WAL bloat on database disks. Covered failure modes include large transactions, quiet slots, and a 404 misclassification that dead-lettered valid events, along with poison-pill recovery strategies, a contract-first OpenAPI schema generating sealed Kotlin types, and in-connector JQ/DuckDB SQL fan-out to multiple sinks.
Related posts
- Utilizing Amazon DynamoDB and AWS Lambda for Asynchronous Event Publication
Zalando Engineering mediumAdeptZalando Payments decoupled event publication from synchronous DynamoDB writes in its Order Store service using the Transactional Outbox pattern, removing the message bus from the request path and raising the availability ceiling from 99.8% to DynamoDB's own. DynamoDB Streams act as the outbox, emitting old and new item images to a Python AWS Lambda that builds a data-change event with a diff patch and publishes it to Nakadi. Failed publishes retry with exponential backoff, then land in an SQS dead letter queue that a Kubernetes CronJob drains by rerunning the same code. The tradeoff is that event ordering is no longer guaranteed.
- Patterns & Best Practices in Event-Driven Systems
Kogan.com Dev Blog mediumAdeptFive core event-driven architecture patterns, compared with their tradeoffs: event notification (thin signals that force consumers to call back), event-carried state transfer (full payloads that decouple consumers at the cost of size and schema discipline), event sourcing with CQRS, choreography and orchestration. Recommended practices include idempotent consumers backed by unique constraints on event IDs, durable replayable streams such as Kafka or EventBridge+SQS, explicit event versioning, schema registries with Avro/Protobuf compatibility modes, domain-driven event names, and correlation IDs for distributed tracing. Many systems mix choreography for simple flows with orchestration for multi-step workflows that need retries and compensation.
- Husky: Exactly-once ingestion and multi-tenancy at scale
Datadog Engineering hardMasterHusky, Datadog's columnar event store, achieves exactly-once ingestion and cost-efficient multi-tenancy by routing events deterministically to Kafka partition groups (shards), so deduplication only has to happen within a shard. Time-bounded, immutable Shard Placements are allocated per tenant by a Sharding Allocator that uses FoundationDB transactions to give every Shard Router node the same answer. An Autosharder resizes each tenant's shard count from byte-throughput metrics. Consistent hashing with wraparound and shard exclusions keeps placement churn minimal, and a balancer counters hotspots. Limiting how many tenants each writer handles also cuts the number of blob-storage files and compaction work.
- Achieving relentless Kafka reliability at scale with the Streaming Platform
Datadog Engineering mediumAdeptDatadog runs hundreds of Kafka clusters with millions of partitions and built the Streaming Platform, a control layer that decouples producers and consumers from specific clusters through "Streams" spanning clusters, AZs and Kubernetes environments. A custom coordinator, the Assigner, replaces Kafka's timeout-based group coordination with metric-driven, seconds-scale rebalancing and live failovers that create a new topic and drain the old one. Head-of-line blocking is removed with priority lanes, a dead-letter lane for poison pills, and multi-range offset tracking stored in commit metadata, which also carries ingestion timestamps to compute real-time time lag from __consumer_offsets. After zstd decompression bombs crashed consumers, the team built libstreaming, a Rust Kafka client with bindings for other languages, and rejected a gRPC proxy because of throughput and latency costs.
- Ensuring reliable OpenTelemetry ingestion at scale
ClickHouse mediumAdept
ClickHouse's LogHouse OpenTelemetry pipeline, ingesting 50 million events per second, absorbs database backpressure by failing over to S3 rather than buffering in memory, local WALs or Kafka. Collector file_storage WALs forced StatefulSets, drained slowly (about 4 hours per TiB) and queued fresh data behind backlog in FIFO order. The final design uses the OTel failoverconnector to route to ClickHouse first and spill to S3 only under backpressure, which limits PUT costs to outage windows. A separate scale-to-zero collector replays spilled blobs via SQS event notifications. Key details include disabling the ClickHouse exporter's sending queue so errors reach the connector, keeping inline retries, enabling the queue on the S3 exporter, and spreading keys across a wide keyspace to avoid prefix throttling.