Producers menerbitake (nulis) acara menyang topic Kafka, lan consumers subscribe menyang (maca) acara saka mangkene. Ngerti kepriye cara makarya — kalebu partisioning, offset, lan consumer group — iku dhasar kanggo nggunakake Kafka.
Producers — nulis acara
PRODUCERS publish events to TOPICS:
→ send a record (key, value) to a topic
→ the key determines the PARTITION (same key → same partition → ordering for that key);
no key → distributed (round-robin)
→ can configure ACKNOWLEDGMENTS (acks) for durability (wait for replicas to confirm)
→ batching, compression for throughput
