开发者

Communication between 2 web apps running in a azure web role instance

I have 2 web applications running in a web role and I only run single instance in the azure cloud. I would like to send and receive notifications between these 2 applications and any outsider should not have access to them.

  1. That means, web service in both of them are out unless there is a way to block outsiders from accessing a web service and only a request from same system would succeed (May be vip and request ip comparison would do, anything beyond that?).
  2. File system watchers. Create a LocalStorage and use it in both web apps and watch for files webappA and webappB in each other.
  3. Use Azure Storage Queues.
  4. MSMQ - not interested as its not supported in azure.

Could you please list other options 开发者_如何转开发available for me in azure web role ? Thanks in advance.

Note: Please avoid suggesting Internal Endpoint as I am running only a single instance with 2 web applications running in it.


You can set up "private" web services to listen on Internal endpoints. These are not accessible via the outside world. You could have a WebAppOne endpoint and WebAppTwo endpoint, both marked Internal. You then just query the role environment to discover the assigned port for each, and fire up your ServiceHost.

Or... you could use a queue to pass information, as long as:

  • You're ok with it being asynchronous
  • You're ok with messages being looked at "at least" once
  • You're ok with messages possibly being looked at out of order

Or... your apps could write information to an Azure table. No need to expose the table to the outside world.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜