Forums

Usage of threading module in Flask API to create a faster alternative to a single level for loop which contains a time consuming operation

I read a few articles on why pythonanywhere doesn't allow threads but those were quite dated. So re-initiating this conversation, because I plan to use the threading module in my flask api as a faster alternative to a simple for loop which can help me reduce the response time of my api. Now, is it possible? if not why and what are the alternatives I should look into?

Threads do not work in webapps. See https://help.pythonanywhere.com/pages/AsyncInWebApps/