简体   繁体   中英

MassTransit is it possible to consume a message from a queue only on-demand?

How can I, or is it even possible to, consume messages from a queue on-demand. That is, for messages to remain in the queue and not to be automatically deliverd to their consumers?

Based on all that I have read in the MassTransit documentation and by design it seems that such behaviour is not possible without using 'hacks'. Unless I drop MassTransit and switch purely to RabbitMQ, which I need to look deper into to find out if such scenario is possible.

I would really appreciate any insights, tips or guidance into the right direction.

MassTransit does not support on-demand, or pull-based, messaging. Transports push messages from the broker (except SQS, because, well, it's SQS) but don't expose any way for developers to "get just one" or other types of polling.

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