Skip to content

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

Topics Backend & APIs

Queues & messaging

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.

ClickHouse

Inside Laravel Nightwatch’s Observability Pipeline: Real-Time Event Processing with Amazon MSK and ClickHouse Cloud

Case study 5 min +50 XP

Laravel Nightwatch, Laravel's first-party observability platform, ingests telemetry through API Gateway and Lambda into Amazon MSK Express brokers, then streams it into ClickHouse Cloud via ClickPipes, with materialized views pre-aggregating raw JSON.

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

How we use formal modeling, lightweight simulations, and chaos testing to design reliable distributed systems

Case study 23 min +230 XP

Datadog validated the design of Courier, a multi-tenant message queue built on multiple FoundationDB clusters after its March 2023 outage, by combining TLA+ formal modeling, lightweight simulations and chaos testing.

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.

2021

Building Smarter Search Products: 3 Steps for Evaluating Search Algorithms

Case study 12 min +120 XP

Shopify's Help Center search team evaluates new ranking algorithms in three steps: collect ground truth from Kafka interaction events and expert-annotated relevance ratings, score variants offline with MAP and NDCG over thousands of historical queries, then run online A/B tests on metrics like click-through rate, average clicked rank, abandonment and support deflection.

Capturing Every Change From Shopify’s Sharded Monolith

Case study 23 min +230 XP

Shopify is replacing Longboat, its query-based change-data capture tool that polls MySQL replicas on an updated_at column, with a log-based CDC platform built on Debezium, Kafka Connect and Kafka that reads the binlog from 100+ MySQL shards.

The quest for software engineering knowledge.

Look:
Layout: