Kafka ના મુખ્ય ખ્યાલોમાં topics (ઇવેન્ટ્સની શ્રેણીઓ), partitions (topics માં સમાનતાનાં એકમો), brokers (સર્વર્સ), producers (લખે છે), અને consumers (વાંચે છે) શામેલ છે. આ સમજવું Kafka સાથે કામ કરવા માટે મૌલિક છે.
મુખ્ય ખ્યાલો
TOPIC → a named category/stream of events (like a "channel" — e.g. "orders", "clicks")
→ producers write to topics; consumers read from them
PARTITION → a topic is split into PARTITIONS (ordered, append-only logs):
→ the unit of PARALLELISM and scaling; events distributed across partitions
→ order is guaranteed WITHIN a partition (not across partitions)
BROKER → a Kafka SERVER (stores data, serves clients); a CLUSTER = multiple brokers
PRODUCER → writes (publishes) events to topics
CONSUMER → reads (subscribes to) events from topics
