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
