dapr / dotnet-sdk

Dapr SDK for .NET
Apache License 2.0
1.12k stars 340 forks source link

Dapr Client SDK support for Azure Service Bus Queues #1054

Open tjoudeh opened 1 year ago

tjoudeh commented 1 year ago

As Dapr Pub/sub API supports Azure Service Bus Queues

Is there an option to use the Dapr Client SDK with Service Bus Queues via attributes [Dapr.Queue("pubsubname", "queuename")] similar to the topics [Dapr.Topic("pubsubname", "topicname")]?

If not is there any way to build .net client consumers using Daor for Service Bus Queues?

halspang commented 1 year ago

@tjoudeh - What is the use case you're going for here? As a rule of thumb, Dapr tries to stay as generic as possible as that is one of the core principals of it, components should be exchangeable. As such, I would hesitate to make any component specific additions directly to the core SDK.

WhitWaldo commented 1 month ago

@tjoudeh It may have been implemented since you asked this question, but you can use the FromTopic subscription in the .NET client using either the Queue or Topic functionality with Azure Service Bus using the pub/sub building block. It's straightforward when using ASB topics, but here's the documented guidance for doing the same with Queues.