Before getting started with configuration of consumer in Java, let me quickly refactor this file and
add previous example where we have reduced simply numbers as messages.
And here actually will be example number two.
Let me add here comment example, too.
And we are producing Kii actually format messages with client Edem of producer with a number of the
message and that they are all looking at Yashar description for a modded.
Strewing as message and the messages.
I'll send with three hundred milliseconds delay.
Three messages per second.
And before that, we have looked at an example where we have sent just a message equal to the number,
and let me actually add this example here above.
And in that example, we have sent actually numbers as the strings.
For Key and Velia, without any delay and luck, may actually quickly.
Select this section, move it here like this, and we will not use threat sleep interval and also we
have not formatted string like that and we have simply sent the number converted to string instead of
message here.
And also we have looked to the terminal like number of the message.
Message here was no.
Was just sent something like that, and afterwards, of course, we have simply closed producer.
Let me copy this line and paste here, and that's basically all what we did here in the first example.
And let me quickly verify whether it works or not.
Let me comment on this entire example, number two, and let's try to run this producer.
And the messages were successfully sent, basically, I have sent them to Swing's topic, but actually
it doesn't matter for now.
Let me uncommanded section and comment out this example.
And actually I am doing that for your convenience because of this file.
And actually, all files in this project will be available in GitHub repository and you will be able
yourself to go to different examples and produce different kinds of messages.
But please know that actually here you are able to adjust a number of records you want to produce and
the topic you want or to produce messages, just do wonderful.
Let's not proceed.
And the next, let's create the basic consumer that will consume messages from particular topic.
I'll see you next.
Bye bye.