Producer veröffentlichen (schreiben) Events in Kafka-Topics, und Consumer abonnieren (lesen) Events von ihnen. Das Verständnis ihrer Funktionsweise — einschließlich Partitionierung, Offsets und Consumer Groups — ist grundlegend für die Nutzung von Kafka.
Producer — Events schreiben
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
