Now you have understanding how messages were spread in our case across different partitions, we have
produced only three messages and they were spread equally across all three partitions.
And in such case, consumer may read messages not in the same order as they were produced by a producer.
That is very, very important.
Now, let's try to the following.
Let's try to read Martha just by consumer from specific partition.
Let's say partition one.
Let's do that.
We need to adjust to this comment.
Let me go here and let me copy this entire section and pasted below.
And now I want to read Martha just from beginning from specific.
Patison.
And all what we need to adjust here in this comment is to add the option partition, Expensify number
of partition we want to read messages from.
So let me add this option here.
There's this partition.
And let's read messages from number one, and don't forget to add backslash here, OK?
We are all set.
Let me copy you this comment and now go back to Tamino, go to council consumer and show that you are
in this step.
Let's stop this council consumer and let's run a new one here in the same thep.
Let's clear Tamino and let's based command that we have just crafted.
Let's press enter.
And now I'll see only a single message, and in my case, it is dark and we have export the message
dog was brought in protection animals one here with this, let me go to Animals one.
So here it is again.
In your case, you may see a completely different message because again, in your case, messages may
be spread in another fashion.
OK, in the same way you can read from another petition and let me adjust this comment and try to read
from position number two.
So let me quote again this comment.
Terminate this command terminal based command and now I should seek out.
Yes, here it is.
Great.
That's how you are able to read messages from specific partition.
Let's next to try to produce one more message, observe where this message will be stored.
And afterwards, let's try to read the messages by the consumer using specific starting of set.
And first we will try to read from Offset Zero and afterwards we will try to read from offset number
one.
So see you next.
Bye bye.