nleroy917 / spottydata-api

Backend and Web API for spottydata.com
MIT License
7 stars 0 forks source link

Stress Test Before Deployment #19

Closed nleroy917 closed 4 years ago

nleroy917 commented 4 years ago

I need to stress test all routes of the API before deployment to find huge issues or bottlenecks.

Will definitely use the following python package to do so: https://github.com/locustio/locust

nleroy917 commented 4 years ago

Used locust to stress test. Some summary data:

Need to update performance of analysis route - I am hitting the Spotify API rate limit. See issue #18 for details and tracking. Will update when another stress test is done.

nleroy917 commented 4 years ago

API underwent serious refactoring to conduct analysis... new stress test results:

It seems that in terms of scalability and performance - Spotify's rate limits designated to my application will be the ultimate bottleneck. I think we should be good for now to deploy and promote and that even a steady stream of users wont break the application.

Only once serious traffic is being achieved will I need to consider a Spotify partnership or seriously refactoring the API.

Closing the issue for now.