nuts icon indicating copy to clipboard operation
nuts copied to clipboard

Multiple instances of the app

Open jsloyer opened this issue 9 years ago • 1 comments

@SamyPesse I was thinking of the architecture a bit for this app, it really only works with the /refresh URI with one instance. If you have multiple instances of the app running it will only refresh the versions on one of the instances. To fix this a common cache is needed. Thoughts on adding an optional dependency redis or memcached?

This is the node module I am looking at using, https://github.com/BryanDonovan/node-cache-manager. It can default to memory if an environment variable is not set.

jsloyer avatar May 19 '16 13:05 jsloyer

I'll be happy to merge a PR to fix this issue. I agree that the caching should be done with potential multiple caching backend.

SamyPesse avatar May 25 '16 18:05 SamyPesse