Service Bus Topic subscriber scaling

Lachezar Dobrev 6 Reputation points
2020-10-01T15:02:52.2+00:00

Using a Topic in Service Bus via JMS+Spring.
The application uses @JmsListener to link to the topic.

I've created a non-durable, shared, pub-sub JmsListenerContainerFactory to use for that purpose.

The application works as expected when only one instance is deployed, but scaling the application ends up in every message to the topic being delivered to only one unpredictable subscriber instance, rather than all.
This turns the topic into what is effectively a queue, which is not expected.

How to configure the JMS topic/subscriber/listeners/factories/etc., so that multiple instances of the application would receive all the messages sent to/via the topic?

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
542 questions
Azure Spring Apps
Azure Spring Apps
An Azure platform as a service for running Spring Boot applications at cloud scale. Previously known as Azure Spring Cloud.
109 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mike Urnun 9,651 Reputation points Microsoft Employee
    2020-10-09T04:41:58.597+00:00

    Hi @Lachezar Dobrev It seems that you're using a Shared non-durable subscriptions, can you try using Unshared non-durable subscriptions instead?