Skip to content

Different channels consume different queues serially. #1344

Closed Answered by acogoluegnes
Yuan-zs asked this question in Q&A
Discussion options

You must be logged in to vote

The Java client uses a "work service" to make sure inbound messages on a given channel are processed in sequence (whatever the consumer on this channel). This work service uses a thread pool with Runtime.getRuntime().availableProcessors() threads by default, but this can be overridden by providing an ExecutorService to the ConnectionFactory#newConnection() method you are using.

The behavior you are experiencing should not happen if the thread pool is large enough and the consumers are registered on different channels. Please provide a standalone program or project to help us investigate if the problem persists.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@acogoluegnes
Comment options

Answer selected by acogoluegnes
@Yuan-zs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants