Producers publiceren (schrijven) events naar Kafka-onderwerpen, en consumers abonneren zich op (lezen) events ervan. Inzicht in hoe ze werken — inclusief partitionering, offsets en consumer groups — is fundamenteel voor het gebruik van Kafka.
Producers — events schrijven
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
