AntonRoskvist commented on PR #4681: URL: https://github.com/apache/activemq-artemis/pull/4681#issuecomment-1999173285
@clebertsuconic The use-case for me (and another user I spoke to on the slack channel) is to be able to compute a destination during runtime inside the transformer. The other user was after something like "If message has header X, address = somePrefix + headerX" I want to use this for a global routing system that would look something like this: 1. Divert wildcard-matches destinations following a naming system that includes a site name (this matches a few hundred destinations, destinations are created dynamically by clients). 2. Divert adds some metadata to messages and aggregates them to a common/aggregate destination (no auto-create needed here) 3. A core bridge picks these messages up and sends them to their destination site. 4. A Divert on the destination site routes messages from the aggregate destination and back to their original destination name (or in some cases another related destination name), based on logic in a transformer (ultimately changing the messages address) I do not want to use the __AMQ_ORIGINAL_DESTINATION headers for this as in the event of some network issues or similar messages would end up on a DLA whereby said header changes to the aggregate queue name and identification afterwards becomes... labour intensive... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
