પ્રોડ્યુસર્સ Kafka ટોપિક્સમાં ઇવેન્ટ્સ પ્રકાશિત (લખે) છે, અને કન્ઝ્યુમર્સ તેમાંથી ઇવેન્ટ્સ સબસ્ક્રાઇબ (વાંચે) છે. તેઓ કેવી રીતે કામ કરે છે તે સમજવું — જેમાં પાર્ટીશનિંગ, ઑફસેટ્સ અને કન્ઝ્યુમર ગ્રુપ્સ સામેલ છે — તે Kafka નો ઉપયોગ કરવા માટે મૂળભૂત છે.
પ્રોડ્યુસર્સ — ઇવેન્ટ્સ લખવા
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
