nconf-redis icon indicating copy to clipboard operation
nconf-redis copied to clipboard

using the pubsub capability of redis to be updated with config changes

Open osher opened this issue 8 years ago • 3 comments

Hi

Before creating our own implementation, I was researching the scene for a Redis based configuration solution with in-memory fallback, and got here - which is awsome! (My last visit to nconf was years ago, back then we chose another solution)

Now, assume that we use redis as the central configuration server, and would like to keep all clients in sync for config changes pushed to the sever - the natural choice would be to use the pubsub capabilities of redis, to keep all subscribed clients in sync with changes - thus, allowing the end users to use synchronous API - just like with memory storage.

I'm very hoping I'm not the first one to think about it...

Thoughts? References? Advices?

If it means submitting a new nconf-storage - it's considerable too, if I get some guidance to be sure I'm coding in accord to your paradigm. I've used rediss pubsub channels with node for a chat, and it works like a charm. Sure a configuration center will be easier than that...

Thanks Osher

osher avatar Mar 01 '16 08:03 osher

Why do you synchronized calls ? For it to work faster ?

fruch avatar Oct 29 '16 23:10 fruch

I have the some idea.It will be very convenient.

amazing-gao avatar Oct 30 '16 05:10 amazing-gao

I've found node-config-live which does exactly this, it works wit node-config-live, I guess it could work with nconf easily

fruch avatar Oct 30 '16 05:10 fruch