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
