ข้ามไปยังเนื้อหา

Kafka — From Zero to Hero

คอร์สแบบ standalone เน้น developer ว่าด้วย Apache Kafka 4.x ตั้งแต่ append-only log และ partitioning ไปจนถึง producers, consumer groups, exactly-once transactions และ production operations สอนผ่าน client code จริง CLI และไดอะแกรม Kafka 4.x เป็น KRaft-only และ ZooKeeper หายไปแล้ว

Foundations & the Log

Kafka ในฐานะ distributed log, append-only abstraction, brokers/topics/partitions/offsets และ KRaft เริ่ม →

Topics, Partitions & Replication

partitioning และ ordering, key, replication และ ISR, retention และ log compaction เรียน →

Producing Messages

producer API, acks และ durability, idempotent producer, batching และ compression produce →

Consuming & Consumer Groups

poll loop, consumer groups และ rebalancing (KIP-848), offset commit และ delivery semantics consume →

Delivery Semantics & Transactions

end-to-end guarantee, transactions (KIP-890), exactly-once processing และ error handling guarantee →

Streams, Connect & Schema

Schema Registry, Kafka Connect, Kafka Streams และการเลือก processing layer process →

Operations & Production

การรัน Kafka บนเครื่อง, monitoring และ consumer lag, tuning และ security operate →

เข้าใจ model ก่อน แล้วค่อยดู code

ทุกหัวข้อเริ่มจาก model — log, partition, consumer group, transaction — พอเข้าใจแล้วพฤติกรรมของ Kafka จะกลายเป็นกลไกที่คุณเข้าใจ ไม่ใช่ config ที่ต้องเดา

Kafka 4.x ที่ verify แล้ว

เขียนบน Kafka 4.x และตรวจสอบกับ official docs ผ่าน context7 — KRaft (ไม่มี ZooKeeper), idempotent producer, KIP-848 consumer rebalance protocol และ KIP-890 transactions ถูกสอนตามที่มีอยู่จริงวันนี้

เน้น guarantee ไม่ใช่แค่ API

ไม่ใช่แค่ “นี่คือ send()” แต่เป็น “acks=all บวก min.insync.replicas การันตีอะไรจริง ๆ และตรงไหนที่ message ยังหายหรือซ้ำได้” คุณจะ reason เรื่อง delivery ได้อย่างมั่นใจ

ไดอะแกรมที่อธิบายได้

log, partition assignment, replication และ ISR และ transactional loop เป็นไดอะแกรม Mermaid ที่รองรับธีม สองภาษา (English / ไทย) พร้อมบันทึกความคืบหน้า quiz