AGENT SKILL

kafka

Apache Kafka: distributed commit log, partition strategy, consumer groups, exactly-once semantics (EOS), and schema registry

License 许可
MIT
最近更新
2026-11-09
Stars
★ 0
Forks
0

01 前言 Front Matter

name
kafka
risk
low
source
https://github.com/Mr-Nobody-Anonymous/All-skills
license
MIT
version
1.0.0
category
data-engineering
description
Apache Kafka: distributed commit log, partition strategy, consumer groups, exactly-once semantics (EOS), and schema registry
imported_at
2026-09-20
source_path
awesome_skills/data-engineering/kafka/SKILL.md
source_repository
Mr-Nobody-Anonymous/All-skills
disable-model-invocation
false

03 SKILL.md 正文

Apache Kafka Event Streaming

Scope

Kafka provides distributed, fault-tolerant, high-throughput event streaming, distributed commit logging, and pub/sub message brokering.

Distributed Architecture & Semantics

  • Topic Partitions & Key Hashing: Keyed messages hashed via Murmur2 to deterministic partitions preserving strict per-partition ordering.
  • Consumer Group Rebalancing: Dynamic partition assignment across consumer group members; tracking committed consumer offsets in __consumer_offsets.
  • Exactly-Once Semantics (EOS):
    • Idempotent Producer (enable.idempotence=true): Sequence numbers and Producer IDs ($PID$) preventing duplicate writes during network retries.
    • Transactional API (sendOffsetsToTransaction): Atomic read-process-write across multiple topics and partitions.
  • Confluent Schema Registry: Enforcing Avro/Protobuf/JSON Schema compatibility (Backward, Forward, Full) to prevent pipeline breakage.

Tools & Standards

  • Tools: Apache Kafka, Confluent Platform, ksqlDB, Debezium.

04 同仓库更多 Skills