arjunnn / linkinbio

A simple "link in bio" service. 🚧 very much a work in progress. I'm building/learning in public 🚧
http://b2l.ink
MIT License
0 stars 0 forks source link

reduce latency #5

Open arjunnn opened 3 years ago

arjunnn commented 3 years ago

There seems to be a huge performance impact (>300ms) when processing /profile GET request and /r GET request.

This is because the hit counters for both profile model and link model are being updated each time the respective call is made.

Maybe it will be beneficial to move it to a separate queue and not hold up the request for so long while the db transaction happens

Celery? 🤔