Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinetrue

Inbound Queue MC2JMS Stream With Concurrent Processing

The MC2JMS stream for consumption from a queue should use a connection with no pool. MC2 will start consumers on all workers in the cluster and will process the messages in parallel on all workers.

...

Concurrent Consumers can be set to 20, which means that one MC2 Worker will process concurrently 20 messages from the queue. If we have 8 MC2 workers (this corresponds to four servers running MC2), MC2 will process 160 messages from the queue concurrently. If this parameter is not set, MC2 will process one message per worker, i.e. for 8 workers only 8 messages will be processed concurrently.


Inbound Queue MC2JMS Stream - Preserving The Sequence

To preserve the sequence we should make sure we consume messages on one consumer only. The configuration for this type of consumption will be the same as the configuration for Queue Concurrent Processing with the following differences:

...