Forums

CPU Usage for an API

I am working on college project for which I have made an API which basically returns data after processing data from excel sheet. Eg: If api call is like: abc.pythonanywhere.com/city/mumbai/ - the code will fetch all the data from excel sheet which is related to mumbai.

Now, my question here is that how much of CPU will be utilized in this process assuming 1000s of API calls are made in a day.

Sorry for the bad question, I am a beginner and had doubt. The most simplest thing I am doing to avoid using CPU is by entering json data manually by converting csv to json and adding an function for each city. But I would prefer if it becomes simpler.

Any help will be appreciated. Thanks

There is no way for us to tell. The CPU use will depend almost entirely on your code.