Using SignalR in Azure Worker Roles

前端 未结 5 1579
清酒与你
清酒与你 2021-02-05 18:53

I have an Azure hosted web application which works alongside a number of instances of a worker role. Currently the web app passes work to these workers by placing messages in an

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-05 19:02

    Keep in mind my knowledge of this two technologies is very basic, I'm just starting. And I might have misunderstood your question, but it seems pretty obvious to me:

    Web roles are capable of subscribing to a queue server where the worker role deposits the message?. If so there would be no client "pulling", the queue service would provide the web server side code with a new message, and through SignalR you would push changes to the client without client requests involved. The communication between web and worker would remain the same (which in my opinion, it's the proper way to do it).

提交回复
热议问题