WEBVTT 00:04.290 --> 00:08.940 OK, let's get started with this example, and first, let's start as occupiers usually. 00:10.010 --> 00:14.540 Open up New City to COFCO Start Thralls Breugel. 00:16.270 --> 00:16.900 This one. 00:20.210 --> 00:25.550 Open up a new tab again, city to COFCO, start one more Breuker this one. 00:27.190 --> 00:30.010 And start one more Breuker Sidiq Afkham. 00:31.570 --> 00:33.950 And start this program great. 00:34.270 --> 00:35.680 All three brokers are on. 00:36.160 --> 00:41.490 Now open up a new tab and bless greed and your topic and I'll read the topic Goldsborough. 00:41.680 --> 00:47.860 And let's agree, let's say 100 prosecutions and two application Pakta, let's say to three and this 00:47.860 --> 00:49.240 will be completely production. 00:49.240 --> 00:50.030 Ready, set up. 00:50.440 --> 00:52.150 OK, let's copy this comment. 00:52.150 --> 00:56.560 And the city took Afkham and create new topic called Bar. 00:58.100 --> 00:58.560 Awesome. 00:58.910 --> 01:04.610 Let's start with the consumer without the specific consumer group and this consumer will simply consume 01:04.610 --> 01:06.870 messages in this part of topic. 01:07.130 --> 01:12.340 So let's go to notepad and let's find a comment that will start consumer. 01:12.380 --> 01:15.520 This one noticed that in this file there is already everywhere. 01:15.530 --> 01:19.520 Topic Burov and you could use this file in this example in GitHub repository. 01:19.760 --> 01:25.240 So let me copy this comment and let's start consumer here in the step, OK? 01:25.590 --> 01:32.900 Consumer is running and now let's try to test our Glouster and let's produce multiple messages by using 01:33.070 --> 01:34.040 another script. 01:34.130 --> 01:41.810 This one gold calf coproducer test and the here in this example, there are several options. 01:42.140 --> 01:44.280 First of all, you need to specify topic. 01:44.300 --> 01:46.180 You want to produce, just do. 01:46.520 --> 01:48.440 And in our case, topic is parve. 01:49.130 --> 01:54.590 Next, nonrecourse will specify how many messages in total will be produced. 01:54.770 --> 02:01.520 And let's start with one thousand throughput means how many messages per second will be produced. 02:01.520 --> 02:07.310 And with such numbers in place, we will produce one hundred messages per second record. 02:07.310 --> 02:14.270 So specify the size of every message in bytes, and in this case, size of every message will be one 02:14.270 --> 02:14.840 kilobyte. 02:15.320 --> 02:18.980 And the last option we will use here is producer groups. 02:19.310 --> 02:26.420 And this producer option requires a list of key value players and mandatory use bootstrap DOD servers 02:26.660 --> 02:29.210 that should point to one of the servers in coffeecake. 02:30.020 --> 02:35.540 There are also other keys, for example, batch size that you could use in producer groups option. 02:35.660 --> 02:39.550 But we will proceed only just with bootstrap those SAWATSKY. 02:39.740 --> 02:41.610 It will be pretty enough for our testing. 02:41.870 --> 02:49.460 So in summary, now we are about to produce one thousand messages at throughput one hundred messages 02:49.460 --> 02:53.870 per second with the size of every message equal to one gigabyte. 02:54.260 --> 02:54.650 Great. 02:54.860 --> 02:57.980 Let's copy this comment and let's start our test. 02:58.850 --> 03:00.230 Let's open up your tab. 03:01.460 --> 03:02.510 Sillitoe COFCO. 03:03.910 --> 03:05.170 And start test. 03:07.000 --> 03:13.870 No test is run, and you may observe that consumer consumes, massages, the arm and the finally test 03:13.870 --> 03:21.010 will be finished in about 10 seconds because we have produced one thousand messages at the rate one 03:21.010 --> 03:22.810 hundred messages per second. 03:23.140 --> 03:29.280 And here below, while test is running, you'll see progress messages like this one that tells us that 03:29.280 --> 03:35.710 the five hundred two messages will send at the rate around 100 records per second, and here you'll 03:35.710 --> 03:37.240 see it rate in megabytes. 03:37.420 --> 03:41.290 In such case, rate was around 100 kilobytes per second. 03:41.560 --> 03:45.040 And also you'll see the details about latency. 03:45.070 --> 03:53.290 Average latency is a 2.5 milliseconds with maximum latency equal to around three hundred milliseconds. 03:53.620 --> 03:59.670 And finally, one thousand records will send at the rate around 100 megabits per second. 04:00.130 --> 04:03.480 So that's how we were able to produce one thousand. 04:03.550 --> 04:06.250 That's just at the rate one hundred messages per second. 04:06.430 --> 04:09.940 And our coffeecake glasswork is easily able to handle this lot. 04:10.270 --> 04:16.150 But what about higher numbers and whatever number of records will be one hundred thousand and higher 04:16.150 --> 04:19.900 throughput, let's say one thousand or ten thousand messages per second. 04:20.240 --> 04:22.300 Let's try that in the next lecture by.