Samagra-Development / yaus

Yet Another URL Shortner
https://github.com/Samagra-Development/yaus/wiki
11 stars 28 forks source link

Eventual Consistency in Click Count #6

Closed ChakshuGautam closed 1 year ago

ChakshuGautam commented 2 years ago

Update the click count in DB every 30 seconds and update the redis incr to 0. Set the key to be locked when updating the cllcks. This will lead to slower API response for that one API call at that point of time.

yuvrajsab commented 1 year ago

is anyone picking this issue?

yuvrajsab commented 1 year ago

just checked and this has been already done. @ChakshuGautam should we close this issue?

Jonathan1599 commented 1 year ago

I don't think locking has been implemented. I can try doing this

yuvrajsab commented 1 year ago

closed via #83