简体   繁体   中英

Publish multiple consecutive messages to RabbitMQ exchange

Is it possible to publish multiple messages to a RabbitMQ exchange in a way that they'll be processed consecutivly, ie there won't be messages originated somewhere else being processed between my messages.

If there is, what is the RMQ Java API for that?

If you need items to be processed in the same order how about putting them all in a single message to be processed by a single consumer?

Even if you could tell rabbit "process these in order" there could be many rabbit consumers attached so message #2 might get done processing before message #1.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM