Let's suppose that there is topic A with multiple partitions and all partitions are spread among different
brokers and every politician has already some messages.
When a specific producer connects to coffeecake and wants to produce messages, it can write the messages
to different politicians.
And on this diagram, you see that producer Rieth message of said no to to partition zero.
Then it Riot's message with offset number one to partition one.
And it writes one more message with offset number two to partition two.
And that's pretty acceptable.
Every producer may produce messages to different partitions of specific topic.
Also, you can setup it in such a way that it will write only to specific partition in case if you will
use key with all the messages and usually all messages with the same key will be read on to the same
partition.
But if you don't supply this key, then messages will be spread in a round robin fashion across all
partitions in specific topic.
But main idea here is that new messages will be added only after existing messages.
And for example, if producer will produce one more message to partition one, then this message will
get offset number two and so on.
Existing messages with the numbers are zero and one are immutable, and producer and producer is not
able somehow to change those messages.
They are again immutable.
Does the main idea behind creation of messages inside of every partition and again notice that every
partition must have a unique offset numbers of all messages and first of that number is zero.
So in partition zero three message has of set number zero and so on.
This idea behind the writing messages to different partitions.
And of course, you may have multiple producers that will write messages to the same topic, to the
same partitions in parallel.
OK, let's not proceed.
And next, let's review how consumers may consume messages from a specific topic of context by.