WEBVTT 00:04.270 --> 00:10.480 So far, we have talked about the architecture of Kafka, Klosters, and you know that every door consists 00:10.480 --> 00:18.010 of a Kafka brokers and Zwicky Prospero's also there are producers and consumers, but there are basically 00:18.010 --> 00:21.040 messages are stored at every broker. 00:21.430 --> 00:21.900 For that. 00:22.030 --> 00:28.960 There is a special entity called the topic, and every topic has its own unique name and they must be 00:28.960 --> 00:30.150 unique across Kafka. 00:30.160 --> 00:38.050 Kloster and every message inside of the topic has a specific number called Offset, and this number 00:38.050 --> 00:43.010 is assigned to every message when it arrives to a specific broker. 00:43.600 --> 00:50.040 And when times go by, every producer may append messages only to the end of the log. 00:50.170 --> 00:56.490 For example, here you see that the new messages may be added after a message with the offset button, 00:56.890 --> 01:02.200 and you are not able to insert a message, for example, here between messages two and three does not 01:02.200 --> 01:02.790 possible. 01:02.980 --> 01:10.810 And that means that every number is immutable and every log record in Breuker is immutable and you are 01:10.810 --> 01:12.130 not able to change it. 01:12.580 --> 01:19.750 But on either side, the broker may delete old records or log records that were expired. 01:19.750 --> 01:26.470 And by default, this period, gold log retention period is set to one hundred six to eight hours or 01:26.470 --> 01:27.370 seven days. 01:27.460 --> 01:33.160 And that means that the by default, again, by default, every broker will delete all messages that 01:33.160 --> 01:35.230 are older than seven days. 01:35.410 --> 01:39.700 Of course, the retention policy is subject to change if you need. 01:40.170 --> 01:41.680 So short summary is following. 01:41.860 --> 01:49.330 Every topic has its own unique name and every message has its own number of set and new messages that 01:49.330 --> 01:53.050 arrive could be appended only after existing messages. 01:53.090 --> 02:00.160 You are not able to insert any messages before previous messages and old messages could be deleted automatically 02:00.370 --> 02:02.710 if the retention period has expired. 02:02.710 --> 02:08.440 And one more important note is every broker does not care about consumers. 02:08.590 --> 02:15.160 It means that if Thoros Kafka messages independent of consumers that they may read or may not read messages 02:15.160 --> 02:15.790 from the log. 02:16.030 --> 02:18.780 It does not matter for Kafka at all. 02:19.330 --> 02:24.870 Its job is just to receive your messages and append them at the end of previous messages. 02:25.150 --> 02:26.970 So that's all for this year and next. 02:27.010 --> 02:31.420 Let me quickly explain the structure of each message, so I'll see you next. 02:31.420 --> 02:31.810 My bye.