PostHog / PostHog/posthog

feat(flags): ramp the Rust cache writer on the invalidation path to 100%

Open
#96,827 0 comments 0 reactions 1 assignee View on GitHub

@JamesPatrickGill is already working on this.

Since Sep 8, 2026.

team/feature-flags
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
6h 51m
Merged PRs (30d)
232

Description

The shadow compare ran at 100% from 2026-09-04 with zero mismatches, so the Rust build logic is validated against production input in both regions. The flags-cache-kafka-dual-write flag pins four internal projects at 100% and runs a general ramp at 1% since 2026-09-07. Continue the ramp from 1% to 100%, with a hold window at each step.

Constraints on the ramp:

  • One flag drives both regions. Before the 1% step, prod-EU never ran persist_flags_cache, so early hold windows watch EU write health first.
  • Each ramped team leaves the shadow compare and falls back to the weaker Python verifier. The hold windows price that trade.
  • Watch builds_total{result="failure"}, the DLQ, and the verifier repair rate. A repair loop on a ramped team means a wrong write that the failure counters missed.

At 100%, the refresh sweep and the verifier still write with Python. That is out of scope here. See the separate issue on a single Rust writer.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.