Kafka deep

From rnavarych/alpha-engineer · View interactive version

Kafka deep is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Kafka deep-dive: topic design (partitions, replication factor), KafkaJS producer with idempotent writes, consumer groups with partition assignment, consumer lag monitoring, exactly-once semantics, schema registry, compacted topics, DLQ patterns. Use when designing Kafka topics, implementing producer

How to use this skill

Skill file

Kafka Deep Dive

When to Use This Skill

Core Principles

  1. Partition count determines parallelism ceiling — 6 partitions = max 6 consumers in a group; you cannot scale beyond partition count
  2. Replication factor 3 for production — 1 node lost: still operational; 2 nodes lost: read-only; RF=1 = data loss risk
  3. Consumer commits must happen after processing — committing before processing = data loss on crash
  4. At-least-once is the default — design consumers to be idempotent; dedup with Redis
  5. Consumer lag is the key operational metric — lag >10k messages at current throughput = alert

References available

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.