Azure / azure-functions-servicebus-extension

Service Bus extension for Azure Functions
MIT License
65 stars 35 forks source link

Message receiver/sender can be constructing using the same connection object (not connection string). #123

Closed alrod closed 2 years ago

alrod commented 3 years ago

https://github.com/Azure/azure-functions-servicebus-extension/issues/120#issuecomment-730653919

sidkri commented 3 years ago

Based on the discussion on the issue, the goal here is to re-use connections to Service Bus across MessageReceivers and MessageSenders. We can start caching ServiceBusConnection objects keyed on the connection string and use this object when creating MessageReceiver and MessageSender objects instead of the connection string. @alrod do you feel we should continue caching the MessageReceiver and MessageSender as well in this case?

jsheetzati commented 3 years ago

Any traction on this issue? We are starting to see issues as we add more ServiceBusTriggers to our Azure Function project.

alrod commented 2 years ago

is this can be refactored in track2?

alrod commented 2 years ago

done in https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.ServiceBus/5.3.0