Multiple Azure Webjob instances on one queue -


i'm looking way have multiple instances of azure webjob running , clearing queue.

one of functions of our application decrease user's credit on every page view on site (called ajax). have close 600 of these websites , every page view of site generating call results in credit being deducted account (sql azure).

this happens real time in , calling sql server on ever 1 of these calls. far it's working fine i'd offload task webjobs , queue since believe better way of doing this.

my question is, how setup webjob or series of them work same queue , work finish in queue. there way of spinning more of them if lets queue reaches high amount of massages?

i've searched everywhere morning information unfortunately can't find on this.

you can write web job, using azure webjobs sdk, triggered messages in queue , spin multiple instances (by scaling). each job instance pick different message queue.

you can use azure websites scale feature. each website instance means webjobs instance too. http://azure.microsoft.com/en-us/documentation/articles/web-sites-scale/

if want scale based on number of queue messages, think (not sure!) can use management api scale programmatically.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -