Version 12.1 by Erik Bakker on 2022/08/30 11:59

Show last authors
1 {{container}}{{container layoutStyle="columns"}}(((
2
3 In this microlearning, we will learn how error handling works for event processors. In a later module, we will learn more about event processors and we will learn how to configure them. In this microlearning, the focus will remain on error handling and not on flow configuration.
4
5 Should you have any questions, please contact [[academy@emagiz.com>>mailto:academy@emagiz.com]].
6
7 == 1. Prerequisites ==
8
9 * Intermediate knowledge of the eMagiz platform
10
11 == 2. Key concepts ==
12
13 This microlearning centers on error handling for Event Streaming.
14
15 * The key aspects are:
16 ** The producer and consumer are responsible for handling the error correctly
17 ** eMagiz will only log exceptions that occur within an event processor
18 ** You can use the log to determine what went wrong where and when
19 ** When eMagiz only provides the topic no additional logging functionality is available in eMagiz
20
21 == 3. Event Streaming ==
22
23 In this microlearning, we will learn how error handling works for event processors. In a later module, we will learn more about event processors and we will learn how to configure them. In this microlearning, the focus will remain on error handling and not on flow configuration.
24
25 * The key aspects are:
26 ** The producer and consumer are responsible for handling the error correctly
27 ** eMagiz will only log exceptions that occur within an event processor
28 ** You can use the log to determine what went wrong where and when
29 ** When eMagiz only provides the topic no additional logging functionality is available in eMagiz
30
31 As we learned in previous microlearnings on the subject of Event Streaming the idea behind it is that producers and consumers can act completely independently of one another. They do not have to be aware of each other. Facilitating Event Streaming in eMagiz can be done in two ways:
32
33 * eMagiz will only be the broker providing the topics
34 * eMagiz will process data between topics via an Event Processor
35
36 In the first case, the producer and consumer will be solely responsible for error handling in case something goes wrong. This is in line with the philosophy of Event Streaming. In case eMagiz is used to process data between topics the data will pass through an eMagiz flow. Within this flow, things can go wrong. In case they go wrong an exception is written to the log of eMagiz. You can find these exceptions in the Manage phase of eMagiz under Monitoring -> Log entries. Here you can filter on the Event Streaming runtime, on level error, and message (Error while processing). This will provide you with a list of errors on the Event Streaming level.
37
38 [[image:Main.Images.Microlearning.WebHome@intermediate-understanding-error-handling-in-emagiz-event-streaming--error-list-manage.png]]
39
40 Each of these errors corresponds with a failed attempt to process a certain message. Keep an eye out for this logging to prevent data loss. If an error persists you should start thinking about finding out and subsequently solving the underlying problem.
41
42 == 4. Assignment ==
43
44 Check out if you have a project in which the Event Streaming pattern is used. If so, check out if you can find any errors that have occurred and see whether you can interpret them.
45
46 == 5. Key takeaways ==
47
48 * The key aspects are:
49 ** The producer and consumer are responsible for handling the error correctly
50 ** eMagiz will only log exceptions that occur within an event processor
51 ** You can use the log to determine what went wrong where and when
52 ** When eMagiz only provides the topic no additional logging functionality is available in eMagiz
53
54 == 6. Suggested Additional Readings ==
55
56 If you are interested in this topic please read the help text eMagiz provides you.
57
58 == 7. Silent demonstration video ==
59
60 As this is a more theoretical microlearning we have no video for this.
61
62 )))((({{toc/}}))){{/container}}{{/container}}