What is the difference between "Web Workers" and "Help Workers" in App Harbor

I am developing a server server for a corner-based game using the App Harbor, and so far it is great for my needs. I would really like to start a background process to process turn data, etc., and I was wondering if anyone could figure out what the difference is between “web workers” and “help workers”? I have fairly limited experience working with web development, but as far as I can tell, "web workers" interact with AJAX pages (which I don’t need), and "help workers" allow you to run a console application in the background (which I really need!)

Thanks!

+7
source share
2 answers

Web workers are associated with a browser request and can receive and send data to a request in a browser.

Background workers are independent threads that are not associated with any request and cannot send data only to the browser *.

[*] Only through a web user.

+5
source

In general, "Web Worker" is an ASP.NET web application or site / service that processes requests from a user. A help desk worker is simply a planned task. It runs in the background, at certain intervals, and runs some code.

The difference is that the web worker does some work when a new request arrives at the application. A request means that someone is loading a page / calling a web service on ASP.NET. While the background worker starts at some interval and the user does not need to load the page to be executed. It is mainly used to handle long-term tasks. Normal workflow - a web worker receives a request from a user and queues some data for processing. At the next start, the background worker receives the data and processes it and saves the data somewhere (usually in the database). Then the web worker at the next request from the user checks the database and, if there is a result, shows it to the user.

Thus, the user does not need to wait until the asp.net page processes the data and immediately returns the result.

+4
source

All Articles