Skip to content

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

Caching Remove topic Caching Clear all 100 posts RSS

November 2026

Tracing Cache Inconsistencies to Their Root Cause

Case study 7 min +70 XP

Nextdoor extended its versioned Valkey ORM cache so every conditional write also atomically stores a short-lived verification key (receipt) recording the operation (fill_on_write or fill_on_miss), writer service, trace ID and replaced version, colocated via a hash tag in the same cluster slot.

ClickHouse

How Infinitas Learning uses ClickHouse Managed Postgres to process billions of events for 1.6M unique learners

Case study 9 min +90 XP

Infinitas Learning runs transactional learner-result processing on Postgres, with PL/pgSQL functions serving as the API in place of an earlier Kafka/Flink event-sourced pipeline, and customer-facing analytics on ClickHouse.

October 2026

September 2026

August 2026

Neon

Open-weight models are fast on Neon AI Gateway. Here's why

Deep dive 7 min +70 XP

Neon AI Gateway serves open-weight models through Databricks Foundation Model APIs, so it gets that stack's inference optimizations: continuous batching with PagedAttention-style KV-cache paging and overlapped prefill/decode, a TensorRT-LLM backend with fused and GroupGEMM kernels for MoE, tensor parallelism, FP8 quantization, and per-GPU tuning.

20× the CI traffic without getting slower: How we rebuilt Git serving at Datadog

Case study 13 min +130 XP

Datadog replaced CI fetches from a replicated Gitaly/Praefect cluster with gitretriever, a fleet of independent Git mirrors that poll GitHub per changed ref and fan packfiles out to autoscaled relays over a gRPC signaling stream plus HTTP.

July 2026

June 2026

May 2026

April 2026

Steganography at scale: Embedding share URLs in Datadog widget screenshots

Case study 20 min +200 XP

Datadog embeds an 8-byte snapshot ID invisibly into the 1 px border of every dashboard widget so screenshots can be resolved back to the full widget context (queries, time range, template variables), with definitions cached in Redis for one hour keyed by org ID plus widget ID.

March 2026

February 2026

January 2026

December 2025

Tangle: An open-source ML experimentation platform built at Shopify scale

Announcement 11 min +110 XP

Tangle is Shopify's newly open-sourced ML experimentation platform: users build pipelines visually as DAGs of containerized CLI components defined in YAML, so components can be written in any language and run on any cloud or locally.

November 2025

October 2025

July 2025

June 2025

How we scaled fast, reliable configuration distribution to thousands of workload containers

Case study 13 min +130 XP

Datadog replaced on-demand per-tenant config loading (database reads plus Kafka cache-invalidation messages) with a context-publisher that snapshots all tenants' configuration into RocksDB blobs in cloud storage and streams individual updates over Kafka.

May 2025

April 2025

March 2025

February 2025

December 2024

November 2024

October 2024

September 2024

August 2024

July 2024

June 2024

May 2024

Render

Distributing Global State to Serve over 1 Billion Daily Requests

Case study 11 min +110 XP

Render's request routers evolved from per-instance in-memory caches with 5-minute TTLs and database lookups on miss, which overloaded PostgreSQL on every redeploy and failed during database downtime, to push-based caching using PostgreSQL LISTEN/NOTIFY so routers never query the database in the hot path.

April 2024

March 2024

Why We Built a Write Back Cache for Our Asset Library with Google Cloud Spanner

Case study 6 min +60 XP

Squarespace's Alexandria asset-library service moved write latency off the critical path by adding a Google Cloud Spanner write-back cache in front of Google Cloud Storage, where libraries are stored as header, segment and trash objects.

January 2024

December 2023

Neon

A Deep Dive into PolyScale’s Architecture

Deep dive 11 min +110 XP

PolyScale is a wire-protocol proxy cache that sits between an application and its database (here, Neon serverless Postgres), routing connections to the nearest edge PoP and caching query results with TTLs it learns automatically from arrival rate, result change rate and related "query templates".

August 2023

July 2023

April 2023

February 2023

January 2023

December 2022

November 2022

Apollo Cache is Your Friend, If You Get To Know It

Deep dive 15 min +150 XP

Apollo Client's InMemoryCache stores a normalized, in-session representation of GraphQL data, and its object lifecycle runs through four stages: fetching (governed by fetch policies, defaulting to cache-first), normalization (splitting responses into objects keyed by __typename plus id or custom keyFields into a flat hash map), updating and merging, and garbage collection and eviction.

September 2022

July 2022

June 2022

April 2022

November 2021

October 2021

September 2021

Making Shopify’s Flagship App 20% Faster in 6 Weeks Using a Novel Caching Solution

Case study 8 min +80 XP

Shop's home feed, which aggregated orders and carrier tracking data and accounted for 30% of database load, was moved behind a custom write-through cache in Memcached, cutting database load by 15%, overall GraphQL latency by about 20% and CPU usage by a double-digit percentage.

April 2021

How we scaled the GitHub API with a sharded, replicated rate limiter in Redis

Case study 9 min +90 XP

GitHub replaced a Memcached-based API rate limiter, which suffered evictions and could not survive a move to per-datacenter caches, with application-sharded Redis clusters (one primary, several read replicas) and atomic Lua scripts, rolled out behind a feature flag.

March 2021

The quest for software engineering knowledge.

Look:
Layout: