File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ 4 . Transformers Architecture
2
+ ============================
3
+
4
+ Status
5
+ ------
6
+
7
+ Approved
8
+
9
+ Context
10
+ -------
11
+
12
+ We can develop event transformers either using the “Backend” architecture
13
+ or “Processor” architecture. Making the transformers “backends” will result
14
+ in relatively more nesting in the configurations as this “backend” will have
15
+ its own configurations.
16
+
17
+ If we decide to develop the event transformers as “processors”, it will result
18
+ in less complexity in the code since the transformer can be easily appended in
19
+ any backend’s (router or logger) processors’ pipeline.
20
+
21
+
22
+ Decision
23
+ --------
24
+
25
+ Transformers will be developed as event processors that can be added in
26
+ any backend’s pipeline. Then the transformed events can be used for any purpose,
27
+ either for simply logging using the LoggerBackend or to route events using
28
+ EventRoutingBackend.
29
+
30
+ Consequences
31
+ ------------
32
+
33
+ Developing transformers as processors will result in relatively less complex
34
+ configurations and it would provide us wider range of use cases for the transformers.
You can’t perform that action at this time.
0 commit comments