Skip to content

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

Topics Backend & APIs

Caching

Cache design, invalidation, CDNs as caches, Redis/Memcached usage.

Search within Caching, or combine it with other topics →

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.

Hugging Face

180B Parameters, 32GB of RAM: Pushing MoE Inference to the Limit with Transformers

Case study 11 min +110 XP

Streaming MoE experts from SSD through a bounded device-side slot pool lets Transformers run Qwen3.8-Flash-Next (121 GB of experts) on a 32 GB MacBook M5 at ~13.9 tok/s, within 6% of the specialized Strata engine on decode and slightly faster on prefill.

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

Together AI

Serving DeepSeek-V4: why million-token context is an inference systems problem

Deep dive 11 min +110 XP

DeepSeek-V4's 1M-token context comes from compressing the token axis of the KV cache: Compressed Sparse Attention (stride 4, top-k selection), Heavily Compressed Attention (stride 128, dense over ~8K entries) and a 128-token Sliding Window Attention path.

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

Together AI

Cache-aware prefill–decode disaggregation (CPD) for up to 40% faster long-context LLM serving

Research 9 min +90 XP

Cache-aware prefill–decode disaggregation (CPD) extends standard PD serving with a dedicated pre-prefill tier for low-reuse (cold) long prompts, a router that estimates prefix-cache reuse per request, and a three-level KV cache hierarchy (GPU memory, host DRAM, RDMA-connected distributed cache).

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

September 2023

August 2023

July 2023

April 2023

February 2023

The quest for software engineering knowledge.

Look:
Layout: