Julien-R44 / bentocache

🍱 Bentocache is a robust multi-tier caching solution for Node.js applications
https://bentocache.dev
MIT License
391 stars 9 forks source link

Distributed locks #2

Closed niksy closed 11 months ago

niksy commented 11 months ago

In cache stampede prevention section, you mention that locks are created in-memory. Are there any plans for distributed locks such as those for Redis?

Julien-R44 commented 11 months ago

In case you missed it, I wrote something about it here: https://bentocache.julr.dev/docs/stampede-protection#multi-instance-applications

For now, I'm convinced that adding distributed locks isn't worth the complexity, at least for bentocache v1. We may come back to this later, but for now, yeah, i'm not convinced it's worth it

niksy commented 11 months ago

Got it, thanks!