baekenough/oh-my-customcode/kafka-best-practices

Claude Code and agent skill by baekenough/oh-my-customcode

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Apache Kafka 4.2 best practices for event streaming, topic design, and producer-consumer patterns

Install

npx vskill@latest install baekenough/oh-my-customcode/kafka-best-practices

SKILL.md

The same SKILL.md was published earlier as baekenough/oh-my-customcode/kafka-best-practices.

Apache Kafka Best Practices

Version: Kafka 4.2.0. ZooKeeper is fully removed in Kafka 4.x — use KRaft mode for all cluster deployments.

Producer Patterns

Idempotent Producer (CRITICAL)
  • Enable enable.idempotence=true
  • Prevents duplicate messages
  • Requires acks=all, retries > 0, max.in.flight.requests.per.connection <= 5
Exactly-Once Semantics
  • Use transactional API: initTransactions(), beginTransaction(), commitTransaction()
  • For exactly-once end-to-end processing
Performance
  • Batching: linger.ms (wait for batch to fill)
  • Compression: compression.type=snappy or lz4
  • batch.size: 16KB default, tune based on message size

Consumer Patterns

Offset Management
  • Auto-commit: enable.auto.commit=true (at-least-once)
  • Manual commit: commitSync() or commitAsync() (better control)
Rebalancing
  • Cooperative sticky assignor: minimal rebalancing disruption
  • session.timeout.ms and heartbeat.interval.ms tuning
At-Least-Once vs Exactly-Once
  • At-least-once: default, idempotent processing required
  • Exactly-once: transactional consumer + producer

Topic Design

Partitioning
  • Partition count: based on throughput (MB/s ÷ partition throughput)
  • Key-based partitioning for ordering guarantees
  • More partitions = higher throughput (but more overhead)
Retention
  • Time-based: retention.ms
  • Size-based: retention.bytes
  • Log compaction: for changelog topics (cleanup.policy=compact)

References

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
43
Repository forks
7
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/baekenough/oh-my-customcode/kafka-best-practices/badge)](https://verified-skill.com/skills/baekenough/oh-my-customcode/kafka-best-practices)

Something wrong with this skill or its page? Tell us.