Reputation: 825
Currently i am working on a Spring Integration application which has a following scenario.
I was reading the Spring Integration reference and found out there are two ways we can approach this scenario.
When it comes to Enterprise Integration Patterns what is the best way to handle this scenario? Any new suggestions and improvements are welcome
Thanks, Keth
Upvotes: 0
Views: 443
Reputation: 174799
There is no "best way" - both solutions are equivalent and there is little difference at runtime. So it's your preference; I generally use pub/sub for the simple case and an RLR if the recipients are conditional (with selectors).
Upvotes: 1