--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I did run across this: https://stackoverflow.com/questions/18531072/rabbitmq-by-example-multiple-threads-channels-and-queueswhich suggests using an ExecutorService to submit tasks, which presumably carry out the work and return the reply. Is this a recommended pattern?john
On Mon, Jun 25, 2018 at 10:46 AM John Lilley <whe...@gmail.com> wrote:
I'm reading here:--specifically "Consumer threads (see Receiving below) are automatically allocated in a new ExecutorService thread pool by default".This leads me to two questions:-- Does this automatically set up a multi-threaded executor for the consumer? Will my consumer need to be thread-safe?-- If not, what is the best approach to a creating a multi-threaded consumer?I also read that "sharing Channel instances between threads is something to be avoided", so this would imply that I need to create multiple Channels and create a separate consumer on each one?Any guidance or RTFM in this area much appreciated.Thanksjohn
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
If the executor service has a single thread (e.g. fixed in size), there can be no concurrency hazards.Otherwise deliveries are dispatched to the pool in [per-channel] order but they can be handled concurrently.Thread safety is a a property of the actions your consumers perform.If your consumers share mutable state of any kind, it's a good idea to make sure they synchronise access tothat state or otherwise address any possible concurrency hazards.
On Mon, Jun 25, 2018 at 7:55 PM, John Lilley <whe...@gmail.com> wrote:
I did run across this: https://stackoverflow.com/questions/18531072/rabbitmq-by-example-multiple-threads-channels-and-queueswhich suggests using an ExecutorService to submit tasks, which presumably carry out the work and return the reply. Is this a recommended pattern?john
On Mon, Jun 25, 2018 at 10:46 AM John Lilley <whe...@gmail.com> wrote:
I'm reading here:--specifically "Consumer threads (see Receiving below) are automatically allocated in a new ExecutorService thread pool by default".This leads me to two questions:-- Does this automatically set up a multi-threaded executor for the consumer? Will my consumer need to be thread-safe?-- If not, what is the best approach to a creating a multi-threaded consumer?I also read that "sharing Channel instances between threads is something to be avoided", so this would imply that I need to create multiple Channels and create a separate consumer on each one?Any guidance or RTFM in this area much appreciated.Thanksjohn
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
--MKStaff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
--MKStaff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
--MKStaff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
--MKStaff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.