Forums

Question regarding web workers

According to the past responses of the pythonanywhere staffs, web workers greatly affects the speed of the web we are deploying right? If a certain user creates multiple tabs in a single browser, does each of them consume web workers? I am subscriberd to your customized monthly upgrades with 3 WEB WORKERS. I thought CPU speed is the one that determines the speed for the webapp, but I think I am wrong. Now our webapp itself suffers from slow processing. Any solution available without changing the amount of Web workers to buy?

That depends very much on your code. If your views take longer to respond, you need more workers and if you get more hits on your site, you need more workers. For instance, if you have 2 workers and your views reliably respond in 0.1 seconds, you can handle 20 hits per second, but if your views respond in 0.5 seconds, then you can only handle 4 hits per second. So it's not about browser tabs but about requests and responses.