Producers ले Kafka topics मा events publish (लेख्छन्), र consumers ले तिनीबाट events subscribe गरेर (पढ्छन्)। कसरी काम गर्छन् भन्ने कुरा बुझ्नु — 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
