Changes for page Asynchronous Routing
Last modified by Danniar Firdausy on 2024/09/04 09:01
From version 37.15
edited by Danniar Firdausy
on 2024/08/21 16:07
on 2024/08/21 16:07
Change comment:
There is no comment for this version
To version 37.10
edited by Danniar Firdausy
on 2024/08/21 16:03
on 2024/08/21 16:03
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -24,12 +24,13 @@ 24 24 25 25 In asynchronous routing, you can build your decision model on which the routing needs to make the decision. 26 26 27 -The best practice for setting up your asynchronous routing process is to use one SpEL expression that determines to which offramp queues a messages needs to be routed. The SpEL expression looks as follows: 27 +The best practice for setting up your asynchronous routing process is to use one SpEL expression that determines to which offramp queues a messages needs to be routed. 28 +The SpEL expression looks as follows: 28 28 29 29 {{code language="xml"}} 30 30 31 31 headers.{technicalnameofproject}\_targetSystem.split(',').![#this.trim()+#root.headers.{technicalnameofproject}_messageType] 32 - 33 + 33 33 {{/code}} 34 34 35 35 This SpEL expression does the following things: ... ... @@ -99,9 +99,9 @@ 99 99 100 100 == 4. Key takeaways == 101 101 102 -* Centralize Decision Making:Usea single component todeterminehowmessagesare routed todifferent channels.103 -* OutputControl:Implement filterstomanagewhen dataissent toeachqueue,ensuring messages areonly routedwhenappropriate.104 -* Documentation:Use the annotations withinyour asynchronousroutingsetup todocumentand maintainclarityftheconfiguration.103 +* Use one component that decides to route messages to certain channels 104 +* Control the output with a filter to prevent data to be sent to a queue too early 105 +* Use the annotations to write down the step by step guide within your asynchronous routing 105 105 106 106 == 5. Suggested Additional Readings == 107 107