Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure web jobs VS azure batch VS worker roles

What are the pros/cons to decide on the approach for data processing on top of Azure? We see Azure web jobs, Azure batch and Azure worker roles, but literally unsure on pros/cons of each choice, especially on scalability and cost.

Assuming e have data processing from azure queue. From 1-5 data item per day, to 500 items per minute. Each item requires custom processing (bits if C# logic) something in between 5 second to 5 minutes depending on the nature of the data.

Having such payload, how we decide on web jobs, Azure batch or workers? What would be the major criterias to decide?

like image 488
user656 Avatar asked Oct 31 '22 17:10

user656


1 Answers

I would say for sure Web jobs would not be appropriate. it is more about running complimentary tasks for your website. If you put high processing job it can impact your website performance.

You can choose between Azure Batch Jobs and Worker Roles, the main distinguishing factor would be if you want to process your tasks in parallel then Azure Batch Jobs would suite more, you can also re-size the pool at runtime.

If you want to monitor the queue and process the request at regular interval, think about worker role.

like image 183
JackMith Avatar answered Nov 11 '22 16:11

JackMith