Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Queues & messaging Remove topic Queues & messaging Clear all 52 posts RSS

2026

How We Built Automated Capacity Testing for Kafka Consumers

Case study 7 min +70 XP

Booking.com extended its HTTP capacity-testing platform to Kafka consumers by using partition assignment as the load knob: a custom priority-aware partition assignor shifts extra partitions onto one target instance step by step, reproducing failure-induced load concentration without killing healthy consumers.

2025

Patterns & Best Practices in Event-Driven Systems

Deep dive 5 min +50 XP

Five 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.

Getting from tested to battle-tested

Case study 13 min +130 XP

Jane Street's Aria, a low-latency message bus with strong ordering guarantees, already had unit, simulated-network, quickcheck, AFL fuzz, version-skew, lab and chaos tests, yet adding Antithesis's deterministic-hypervisor testing surfaced two unknown bugs on the first run.

Scaling down to speed up: How we improved efficiency of live process metrics by 100x

Case study 8 min +80 XP

Datadog cut real-time process and container metric traffic by about 100x by enabling 2-second live collection only on hosts whose processes a user is actually viewing (at most 50 per user), instead of on every host in the tenant.

Achieving relentless Kafka reliability at scale with the Streaming Platform

Case study 10 min +100 XP

Datadog 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.

2024

Neon

Easy Embeddings Indexing Pipelines with Redpanda and Neon

How-to 3 min +30 XP

An embeddings indexing pipeline can be built from configuration alone with Redpanda Connect: it consumes e-commerce invoice messages from a Redpanda Serverless topic over SASL/TLS, builds a text description of each order with Bloblang, computes embeddings locally via Ollama's nomic-embed-text model, and flattens items into separate messages before writing them to Neon Postgres with pgvector for natural-language search.

2023

ClickHouse

Goldsky - A Gold Standard Architecture with ClickHouse and Redpanda

Case study 9 min +90 XP

Goldsky streams blockchain data to potentially thousands of customer ClickHouse clusters by indexing chains into per-data-type Redpanda topics (Avro, infinite retention via tiered storage), applying per-customer FlinkSQL filters, joins and aggregations in stream at up to 500k events/sec, and delivering results to ClickHouse.

ClickHouse

Kafka, Latency, and You: Minimizing Latency with Kafka & ClickHouse

How-to 8 min +80 XP

End-to-end latency in a Kafka → Kafka Connect → ClickHouse pipeline can be measured by stamping messages with offset, partition, timestamp and topic via single message transforms, recording insert time with a DEFAULT now() column, and charting median/p75/p95 deltas per minute in SQL.

ClickHouse

Change Data Capture (CDC) with PostgreSQL and ClickHouse - Part 1

Deep dive 23 min +230 XP

Postgres-to-ClickHouse CDC can be built by streaming row changes from Postgres logical decoding (pgoutput plugin, replication slots, LSN ordering) through Debezium and Kafka, then applying them in ClickHouse with the ReplacingMergeTree engine.

2022

Meta Engineering

FOQS: Making a distributed priority queue disaster-ready

Case study 10 min +100 XP

Meta's FOQS distributed priority queue moved from isolated regional installations on semi-synchronous replicated MySQL to a single global installation, after Hurricane Florence in 2018 exposed manual traffic rebalancing and items stuck on unreachable shards.

The quest for software engineering knowledge.

Look:
Layout: