Producers აქვეყნებენ (წერენ) events Kafka topics-ში, და 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
