Filo6699 / url_shortener

0 stars 0 forks source link

add message queue system #3

Open Filo6699 opened 7 months ago

Filo6699 commented 7 months ago

thinking about redis visits don't save properly because, to make less requests to the DB, visits are also being stored and calculated locally in a DB._visits variable. this causes problems when there is more than 1 gunicorn worker since their visit counts are not synchronized. so now im running at 1 worker yey

Mazgagzam commented 7 months ago

One worker?

Filo6699 commented 2 months ago

a worker is a separate instance of the whole app