Forums

CPU time for web apps

Hi,

First thanks for your work, I've only scratched the surface but so far loved PythonAnywhere. I'm curious about one thing. I was thinking of implementing a website with django to advertise some of my research:

  • the client would load a page where they could choose a few parameters
  • depending on those parameters passed to the server, a simulation would be run on the server side in python, a plot produced in matplotlib, and that plot sent back to the client.

Now the simulation code is a bit heavy, at least from a web app point of view. With the parameters I would allow, I expect something of the order of 1 CPU-second. I would probably limit to a single user running this simulation at the same time. Is this going to be too much? If not do you recommand a plan?

Thanks for your help.

We do not meter CPU time in web apps. However, if your views take a long time to respond, then you may run out of workers: https://help.pythonanywhere.com/pages/HowManyHitsCanMySiteHandle/

Thanks!