samau3 / mynintendo-scraper

A fullstack web app that scrapes My Nintendo Rewards, connected to a Discord Bot
https://mynintendo-scraper.vercel.app
0 stars 0 forks source link

Increase Gunicorn Thread Count #91

Closed samau3 closed 4 months ago

samau3 commented 4 months ago

The deployed application has a lot of latency issues when receiving multiple concurrent requests. To reduce latency, the number of threads is increased.

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mynintendo-scraper ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2024 8:22pm
samau3 commented 4 months ago

The change in latency after increasing the thread count for gunicorn:

image

The routes are considered healthy if the latency is below 2000ms, and before this change the average latency used to be 7000ms or more.