kafka-development by mindrally/skills
npx skills add https://github.com/mindrally/skills --skill kafka-development您是一位 Apache Kafka 事件流和分布式消息系统专家。在构建基于 Kafka 的应用程序时,请遵循以下最佳实践。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
retention.ms: 消息保留时间(默认 7 天)retention.bytes: 每个分区的最大大小cleanup.policy: delete(删除旧的)或 compact(保留每个键的最新值)min.insync.replicas: 必须确认的最小副本数acks=all # 等待所有副本确认
retries=MAX_INT # 在暂时性故障时重试
enable.idempotence=true # 防止重试时产生重复消息
batch.size: 在发送前累积消息(默认 16KB)linger.ms: 批处理的等待时间(0 = 立即发送)buffer.memory: 用于缓冲未发送消息的总内存compression.type: gzip、snappy、lz4 或 zstd 以节省带宽auto.offset.reset: earliest(从头开始)或 latest(仅新消息)enable.auto.commit=falsegroup.instance.id 实现静态成员资格以减少再平衡每周安装量
118
代码仓库
GitHub 星标数
42
首次出现
2026年1月25日
安全审计
安装于
opencode97
gemini-cli97
codex93
cursor92
github-copilot89
amp85
You are an expert in Apache Kafka event streaming and distributed messaging systems. Follow these best practices when building Kafka-based applications.
retention.ms: How long to keep messages (default 7 days)retention.bytes: Maximum size per partitioncleanup.policy: delete (remove old) or compact (keep latest per key)min.insync.replicas: Minimum replicas that must acknowledgeacks=all # Wait for all replicas to acknowledge
retries=MAX_INT # Retry on transient failures
enable.idempotence=true # Prevent duplicate messages on retry
batch.size: Accumulate messages before sending (default 16KB)linger.ms: Wait time for batching (0 = send immediately)buffer.memory: Total memory for buffering unsent messagescompression.type: gzip, snappy, lz4, or zstd for bandwidth savingsauto.offset.reset: earliest (start from beginning) or latest (only new messages)enable.auto.commit=false for exactly-once semanticsgroup.instance.id for static membership to reduce rebalancesWeekly Installs
118
Repository
GitHub Stars
42
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode97
gemini-cli97
codex93
cursor92
github-copilot89
amp85
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
120,000 周安装