Producers Kafka topics ला events प्रकाशित (लिहा) करतात, आणि consumers त्यांच्याकडून events ला सदस्यता घेतात (वाचा). त्यांच्या कार्यप्रणालीची समज — partitioning, offsets, आणि consumer groups समाविष्ट करून — Kafka वापरण्यासाठी मूलभूत आहे.
Producers — events लिहिणे
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
