Kafka is an extremely important ๐๐ถ๐๐๐ฟ๐ถ๐ฏ๐๐๐ฒ๐ฑ ๐ ๐ฒ๐๐๐ฎ๐ด๐ถ๐ป๐ด ๐ฆ๐๐๐๐ฒ๐บ to understand as it was the first of its kind and most of the new products are built on the ideas of Kafka.
๐ฆ๐ผ๐บ๐ฒ ๐ด๐ฒ๐ป๐ฒ๐ฟ๐ฎ๐น ๐ฑ๐ฒ๐ณ๐ถ๐ป๐ถ๐๐ถ๐ผ๐ป๐:
โก๏ธ Clients writing to Kafka are called ๐ฃ๐ฟ๐ผ๐ฑ๐๐ฐ๐ฒ๐ฟ๐,
โก๏ธ Clients reading the Data are called ๐๐ผ๐ป๐๐๐บ๐ฒ๐ฟ๐.
โก๏ธ Data is written into ๐ง๐ผ๐ฝ๐ถ๐ฐ๐ that can be compared to ๐ง๐ฎ๐ฏ๐น๐ฒ๐ ๐ถ๐ป ๐๐ฎ๐๐ฎ๐ฏ๐ฎ๐๐ฒ๐.
โก๏ธ Messages sent to Topics are called ๐ฅ๐ฒ๐ฐ๐ผ๐ฟ๐ฑ๐.
โก๏ธ Topics are composed of ๐ฃ๐ฎ๐ฟ๐๐ถ๐๐ถ๐ผ๐ป๐.
โก๏ธ Each Partition behaves like and is a set of ๐ช๐ฟ๐ถ๐๐ฒ ๐๐ต๐ฒ๐ฎ๐ฑ ๐๐ผ๐ด๐.
๐ช๐ฟ๐ถ๐๐ถ๐ป๐ด ๐๐ฎ๐๐ฎ:
โก๏ธ There are two types of records that can be sent to a Topic โ ๐๐ผ๐ป๐๐ฎ๐ถ๐ป๐ถ๐ป๐ด ๐ฎ ๐๐ฒ๐ ๐ฎ๐ป๐ฑ ๐ช๐ถ๐๐ต๐ผ๐๐ ๐ฎ ๐๐ฒ๐.
โก๏ธ If there is no key, then records are written into Partitions in a ๐ฅ๐ผ๐๐ป๐ฑ ๐ฅ๐ผ๐ฏ๐ถ๐ป ๐ณ๐ฎ๐๐ต๐ถ๐ผ๐ป.
โก๏ธ If there is a key, then records with the same keys will always be written to the ๐ฆ๐ฎ๐บ๐ฒ ๐ฃ๐ฎ๐ฟ๐๐ถ๐๐ถ๐ผ๐ป.
โก๏ธ Data is always written to the ๐๐ป๐ฑ ๐ผ๐ณ ๐๐ต๐ฒ ๐ฃ๐ฎ๐ฟ๐๐ถ๐๐ถ๐ผ๐ป.
โก๏ธ When written, a record gets an ๐ข๐ณ๐ณ๐๐ฒ๐ assigned to it which denotes its ๐ข๐ฟ๐ฑ๐ฒ๐ฟ/๐ฃ๐น๐ฎ๐ฐ๐ฒ ๐ถ๐ป ๐๐ต๐ฒ ๐ฃ๐ฎ๐ฟ๐๐ถ๐๐ถ๐ผ๐ป.
โก๏ธ Partitions have separate sets of Offsets starting from 1.
โก๏ธ Offsets are incremented sequentially when new records are written.
Any insights you would add about writing data to Kafka? Let me know in the comment section ๐