Controlling azure worker roles concurrency in multiple instance
Posted
by
NER1808
on Stack Overflow
See other posts from Stack Overflow
or by NER1808
Published on 2011-01-13T18:07:53Z
Indexed on
2011/01/13
23:53 UTC
Read the original article
Hit count: 325
I have a simple work role in azure that does some data processing on an SQL azure database. The worker basically adds data from a 3rd party datasource to my database every 2 minutes. When I have two instances of the role, this obviously doubles up unnecessarily. I would like to have 2 instances for redundancy and the 99.95 uptime, but do not want them both processing at the same time as they will just duplicate the same job. Is there a standard pattern for this that I am missing? I know I could set flags in the database, but am hoping there is another easier or better way to manage this. Thanks
© Stack Overflow or respective owner