阅读背景:

此代码是否可以使两个单独的Azure工作者实例同时执行操作?

来源:互联网 

I am adding a simple worker process to an underutilized Azure web role. I have this web role running on 2 instances for reliability/uptime. This worker process was to be set to sleep for around 5 min before performing an action and then sleeping again. By adding this worker process to the web role it will be running on multiple instances and they will both try to perform the same action at the same time. Normally this problem is overcome by using a queue but I don't need anything nearly that elaborate. I just something to keep the 2 instances from being completely syncronized. I am adding a simple worker process to an under




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: