Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
507 views
in Technique[技术] by (71.8m points)

activemq artemis - What happens to un-routed messages when filters are used?

I have a large number of un-routed messages for an address where all the queues have a filter. I only need a small subset of the messages the publisher sends -- so that's how I've been filtering them.

Is this a terrible idea? What happens to un-routed messages?

question from:https://stackoverflow.com/questions/65829327/what-happens-to-un-routed-messages-when-filters-are-used

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Using queues with filters is the recommended way to keep consumers from getting messages they don't care about. This is much more efficient (although sometimes less flexible) than configuring the filter on the consumer itself.

Messages which are sent to an address and then are not routed to any queue (e.g. because the filters don't match) are simply discarded by default.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...