[Question] Is it possible to connect to partitioned topic in Azure Service Bus with AMQP.Net Lite library?
See original GitHub issueMy client .NET Core application uses AMQP.Net Lite library to work with Azure Service Bus. When the topic in the service bus namespace is NOT partitioned (Enable Partitioning
is turned OFF), everything works fine - I’m able to connect and create ReceiverLink
object to receive messages.
However, as soon as the topic is partitioned (Enable Partitioning
is turned ON), I get the following error immediately after ReceiverLink
object creation.
The error description is: “Cannot open a Topic client for entity type Subscriber.”
The error code translates to the AMQP map as amqp:not-allowed
. According to the docs, it means “The peer tried to use a frame in a manner that is inconsistent with the semantics defined in the specification.” To be honest, I can hardly understand what it means in terms of Azure Service Bus abstractions, but it sounds depressing and similar to “not possible” to me…
On the other hand, the MS docs state that AMQP can be used to send and receive messages:
AMQP is now supported for sending and receiving messages to and from a partitioned entity.
So, the question is whether it is at all possible to use AMQP.NET Lite library to receive messages from a partitioned topic in Azure Service Bus?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top GitHub Comments
It should not be the case. ASB supports standard AMQP. It’s probably something missing in handling partitioned topics.
Let’s assume your topic is named “t1” and has a subscription named “s1”. There are two ways to create a receiver link.
Both ways work with regular topic but the first doesn’t work with partitioned topic (the second works though). It is a bug in ASB when a topic is partitioned.
@xinchen10 I posted the same question on StackOverflow, and @pranavq212 made an interesting note, that MS has just published the info about Amqp support last month, while Amqp.Net Lite library has its most recent release earlier. Could it be the case that the library just does not comply with the latest changes in ASB?