Purpose

Defines the content, framing, and structural requirements for the site’s Kafka-as-local-cache article (_articles/local-cache-via-kafka.md) — the SEO/AEO conventions from _articles/CLAUDE.md applied to this specific post.

Requirements

Requirement: Article file and front matter

The system SHALL provide a new post at _articles/local-cache-via-kafka.md with layout: post, a date, tags array, excerpt, description, and tech_icon, matching the structure of existing posts (_articles/outboxes.md, _articles/enums.md).

Scenario: Post front matter is complete

Requirement: Reddit origin framing

The article SHALL open by stating the author enjoys following Reddit technical discussions, link the source thread, and frame the rest of the article as sharing production experience in answer to it.

Scenario: Reddit thread is linked and framed

Requirement: TL;DR block

The article SHALL include a <div class="post-tldr" markdown="1"> block near the top summarizing the key takeaways, matching the pattern used in _articles/outboxes.md.

Scenario: TL;DR renders

Requirement: Reddit questions answered explicitly

The article SHALL explicitly answer each of the four questions from the Reddit post: whether Kafka is a good Redis replacement here, whether all 25 pods receive each update, whether each pod needs its own consumer group, and pros/cons of the approach.

Scenario: All four questions are addressed

Requirement: Technical content coverage

The article SHALL cover, with prose and at least one diagram where noted: the per-pod distinct consumer group broadcast pattern (vs. load-balanced consumer groups) [diagram], the eventual-consistency tradeoff vs Redis, readiness gating before serving traffic/scheduled jobs [diagram], orphaned consumer groups as an accepted cost, tombstone-based deletes and cache eviction/soft-delete choice [diagram], startup-time risk from full-topic replay and batch consuming as mitigation, and the need for multiple partitions plus a thread-safe local cache for concurrent consumption.

Scenario: Required topics present

Requirement: Code snippets sourced from working example

Code snippets embedded in the article SHALL be copied verbatim (or minimally trimmed for length) from the finished, verified companion example repository, not invented for the article.

Scenario: Snippet traceability

Requirement: FAQ front matter

The article SHALL include a faq front matter list of 3-5 question/answer pairs relevant to Kafka-as-cache-sync, following the pattern in _articles/outboxes.md.

Scenario: FAQ renders and emits structured data

The article SHALL end with a “Code” section linking to the public repository hosting the companion example, following the pattern in _articles/outboxes.md.