Now, there are two consumers up and running here, and we have just verified that both of them received
new massages, but we have just single producer here.
Let's not try to run one more producer by keeping this comment and run it in a new time.
No window.
Let's make this window smaller like so it will be a producer.
No.
One, open the window, make it the smaller and place it somewhere here like salt.
And let's see the folder.
Clear terminal and start new producer with same command as we have used for starting of this producer
will enter here and now we are able to produce some messages from this producer.
Let's write another name, for example, Barcelona press enter message was sent and it was successfully
received by both consumers.
And here was another important outcome.
Neither consumers nor producers know about each other.
It means that this producer doesn't know anything about existence of those consumers and about other
producers as well.
He does just perform its own job, nothing else.
Same I can say about this producer.
It produces messages without knowing about all the producers or consumers.
And consumers don't care about producers that produced those particular messages.
They just consume messages from one centralized storage from coffeecake last time.
And that is the beauty of Kafka architecture.
Producers and consumers might appear and may go, but as long as messages are stored in centralized
storage in coffeecake year, they may be consumed by consumers.
And new producers may send new messages to this Kafka cluster.
For example, let's try to stop this Kafka producer.
It will stopped.
But this action didn't affect in any way those consumers or this producer.
They are still up and running.
And I'm able to produce another message, for example, here by typing, let's say, Madrid.
And this message will be received again by both consumers.
I can start this producer once again and send another city name, for example, Toronto.
It will be consumed as before by both consumers.
And to those consumers don't care about presents or producers.
They do just simple job.
Get new messages from Kafka, Glouster, Death it OK?
At this moment you should have really nice understanding of what Kafka is and what it actually does.
Also, you understand what a producer and what a consumer producers sent messages to Kafka.
Gloster and consumers consume those messages.
Nola's Prasit and Next lets us or some other questions like where Kafka basically stores all those messages,
because as we have seen before, you are able to read the messages from the very beginning.
And that means that somewhere Kafka stores all messages that were sent to a particular topic.
Let's explore it next.
Bye bye.