I have a simple Django app that receives user input from a form, performs some image processing and returns an image. On my local machine response time is consistent at around 2.6 seconds. I didn't expect response time on pythonanywhere to match this, but I did expect that performance would be consistent.
Response time is varying from a little over 3 seconds to over 30 seconds.
Each request in the screenshot sends the same data, and waits until the previous request is complete before sending, so this is not an issue with busy workers.
Obviously, I would like to have the response time consistently as low as possible. Is there anything I can do on my end to improve the performance?
I did read something in a previous topic about web apps competing for resources on the server, and that heavy processing belongs in a console or scheduled tasks. Can I expect better performance if I use scheduled tasks to run an async task queue?
Thank you for your help!