Closed jeffcjlee closed 8 years ago
I see some good things about leveraging Celery and Redis in order to create a async job queue that runs in background. This probably is the way to. Look more into it.
Fixed.
The workflow has been converted with a task queue system. Now, fetching businesses are individual tasks that wait in a queue. The daemon only does one task at a time. The client polls the server every 5 seconds for if their respective task is completed. No longer hitting time outs.
A user can click to fetch multiple businesses at a time, and the server will process them independently without restrictions.
If they chose to fetch 10 businesses with each having large # reviews, it can cause too many requests to Yelp and get the site banned.