Ask Your Question
4

Why are multiple instances of micro services not functioning properly with MQ shared subscription?

asked 2023-07-15 05:17:00 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-07-15 05:45:01 +0000

lalupa gravatar image

There can be several reasons why multiple instances of microservices may not be functioning properly with an MQ shared subscription, such as:

  1. Inconsistent or incorrect subscription names: The subscription name must be unique and consistent across all the instances of the microservices. If a different subscription name is used, it can cause the messages to be delivered to the wrong instances.

  2. Incorrect configuration of MQ Client: The MQ client must be configured correctly with the correct shared subscription mode and other settings. If the configuration is inconsistent, it can cause issues with message delivery.

  3. Limited availability of messages: In a shared subscription, multiple instances may be sharing the same set of messages. If there are limited messages available, it can cause issues with message delivery and can result in messages being dropped or not being delivered properly.

  4. Conflicting message handlers: Multiple instances of microservices may have conflicting message handlers, which can result in messages being delivered to the wrong microservice instance or not being processed at all.

  5. Lack of load balancing: Without proper load balancing, certain instances of microservices may be overloaded with messages, while others remain underutilized. This can result in slow processing times or intermittent message delivery.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-15 05:17:00 +0000

Seen: 10 times

Last updated: Jul 15 '23