Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
275 views
in Technique[技术] by (71.8m points)

c# - How does Azure Service Bus queue subscription can affect in IIS application idle state?

I have a scenario where there are many .NET Web APIs hosted in one IIS. It's one application per customer.

I need to implement user notifications features. Which consists in one message publisher system, and many receivers that are those applications hosted in the IIS. And I'm thinking about using Azure Service Bus to make communications between the publisher system and the receivers.

The thing that makes me confused is that those applications running in IIS are Web APIs and they enter in Idle state after a while without activity. That's intended as it allows us to save resources. But i don't know if subscribing to a queue will make the applications not to enter the Idle state. Or if they enter the Idle state and when they receive messages, they'll all at the same time get out of the idle state.

question from:https://stackoverflow.com/questions/65934893/how-does-azure-service-bus-queue-subscription-can-affect-in-iis-application-idle

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

AFAIK, the answer to your question is that once Web API create a receiver at their end, they won't die as they will be still active and listening to the subscriber (receiver queue).

For more details of publish subscribe method's working in Service Bus, you can visit Service Bus queues, topics, and subscriptions.

Let me know if this answers your question.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...