You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Side note: In Event Hubs, we went with isRunning on the Subscription that was returned bu subscribe().
Not sure if that was meant for a purpose different than what isReceivingMessages() in Service Bus would serve
I think we went with isRunning to signify that the subscription wasn't closed, since technically the subscription might not be receiving events yet if it hasn't connected to any partitions. It's technically correct...
I'd talked with @ramya-rao-a about this - currently leaning towards removing it since it sounds like we added it because our receiver was unreliable (and this was a workaround for customers to detect that). There have been numerous reliability fixes in track 2 so removing this flag feels within reach.
This is the current shape of the API for the Receiver in v7 of Service Bus:
The
isReceivingMessages()
is mainly useful for thesubscribe()
model and not so much for the otherspeekMessages()
andreceiveDeferredMessages()
receiveMessages()
doesnt really need this as one can check the status of the promise returned by it to know if the receiving is done or not#9493 tracks the proposal to make
subscribe()
return a object that is closable.This issue is to move the
isReceivingMessages()
into the above object.Or at the very least, remove it from the
Receiver
and add it based on user feedback.cc @richardpark-msft, @HarshaNalluru, @chradek
The text was updated successfully, but these errors were encountered: