Changes for page Retention Policy

Last modified by Danniar Firdausy on 2024/09/18 15:56

From version 4.1
edited by Erik Bakker
on 2022/08/30 12:25
Change comment: There is no comment for this version
To version 2.1
edited by Erik Bakker
on 2022/06/10 08:38
Change comment: Imported from XAR

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,0 @@
1 -Retention Policy
Parent
... ... @@ -1,1 +1,0 @@
1 -WebHome
Default language
... ... @@ -1,1 +1,0 @@
1 -en
Content
... ... @@ -1,8 +1,13 @@
1 1  {{container}}{{container layoutStyle="columns"}}(((
2 += Retention Policy =
3 +
2 2  In this microlearning, we will dive a little bit deeper into the concept of the retention policy concerning Event Streaming. Retention policy determines when a message needs to be cleaned up and, if so, what will happen to the message.
3 3  
4 4  Should you have any questions, please get in touch with [[academy@emagiz.com>>mailto:academy@emagiz.com]].
5 5  
8 +* Last update: August 4th, 2021
9 +* Required reading time: 4 minutes
10 +
6 6  == 1. Prerequisites ==
7 7  
8 8  * Intermediate knowledge of the eMagiz platform
... ... @@ -12,31 +12,34 @@
12 12  This microlearning centers on the retention policy for Event Streaming.
13 13  
14 14  * The key aspects are:
15 - ** Retention Hours
16 - ** Retention Bytes
17 - ** Cleanup Policy
18 - ** These three items determine the retention policy
20 + * Retention Hours
21 + * Retention Bytes
22 + * Cleanup Policy
23 + * These three items determine the retention policy
19 19  
25 +
26 +
20 20  == 3. Event Streaming ==
21 21  
22 22  In this microlearning, we will dive a little bit deeper into the concept of the retention policy concerning Event Streaming. Retention policy determines when a message needs to be cleaned up and, if so, what will happen to the message.
23 23  
24 24  * The key aspects are:
25 - ** Retention Hours
26 - ** Retention Bytes
27 - ** Cleanup Policy
28 - ** These three items determine the retention policy
32 + * Retention Hours
33 + * Retention Bytes
34 + * Cleanup Policy
35 + * These three items determine the retention policy
29 29  
30 -As we learned in the introductory [[microlearning>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Event Streaming.crashcourse-eventstreaming-event-streaming-introduction.WebHome||target="blank"]], the topic holds a log with a sequence of messages. Based on several criteria, the broker decides when to remove messages from the back of the log to ensure that the topic stays within specific parameters. These parameters are the retention hours and the retention bytes. If you want to learn more about them specifically, please check out this [[microlearning>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Event Streaming.crashcourse-eventstreaming-topic-and-topic-properties.WebHome||target="blank"]].
37 +As we learned in the introductory [microlearning](crashcourse-eventstreaming-event-streaming-introduction.md), the topic holds a log with a sequence of messages. Based on several criteria, the broker decides when to remove messages from the back of the log to ensure that the topic stays within specific parameters. These parameters are the retention hours and the retention bytes. If you want to learn more about them specifically, please check out this [microlearning](crashcourse-eventstreaming-topic-and-topic-properties.md).
31 31  
32 32  These parameters combined with the cleanup policy determine what happens with a message after it is expired. There are two options available:
33 -* delete
34 -* compact
35 -
40 +delete
41 +compact
36 36  The delete option is the default that eMagiz uses and advises. This option will, as the name suggests, delete all messages that are expired. There is an alternative approach called compact. This functionality will enable log compaction on the topic.
37 37  
38 38  The three aspects combine to make up the retention policy. Defining the correct values for both the retention hours and the retention bytes is a science as a form of art. As you only have limited storage capacity available, the challenge becomes how much retention you reserve per topic. The more you assign, the less free storage capacity remains for other topics. As a consequence, you need to strive to optimize your retention policy per topic continually.
39 39  
46 +
47 +
40 40  == 4. Assignment ==
41 41  
42 42  Check out if you have a project in which the Event Streaming pattern is used. If so, check out the retention policy for several topics.
... ... @@ -44,11 +44,13 @@
44 44  == 5. Key takeaways ==
45 45  
46 46  * The key aspects are:
47 - ** Retention Hours
48 - ** Retention Bytes
49 - ** Cleanup Policy
50 - ** These three items determine the retention policy
55 + * Retention Hours
56 + * Retention Bytes
57 + * Cleanup Policy
58 + * These three items determine the retention policy
51 51  
60 +
61 +
52 52  == 6. Suggested Additional Readings ==
53 53  
54 54  If you are interested in this topic, please read the help text eMagiz provides you.