Skip to content

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

9 posts RSS

Monday, Nov 23

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.

Wednesday, Mar 19, 2025

Scaling Nextdoor’s Datastores: Part 2

Case study 4 min +40 XP

Letting product engineers manually choose replica vs. primary routing in Django broke down as abstractions hid read-after-write dependencies, and the common workaround of wrapping logic in transactions sent everything to the primary, slowly eroding the capacity gained from read replicas.

Monday, Oct 16, 2023

Let AI Entertain You: Increasing User Engagement with Generative AI and Rejection Sampling

Case study 12 min +120 XP

Nextdoor improved notification email subject lines by having ChatGPT extract (not rewrite) the most interesting phrase from a post, then using a fine-tuned OpenAI ada reward model to accept the generated subject only when it predicts more clicks than the user-written one, a form of rejection sampling.

Thursday, Sep 7, 2023

Wednesday, Jan 11, 2023

The quest for software engineering knowledge.

Look:
Layout: