{"repo":"sagiegurari/multiple-redis","free":true,"listed":false,"github":"https://github.com/sagiegurari/multiple-redis","clone":"git clone https://github.com/sagiegurari/multiple-redis.git","description":"Run redis commands against multiple redis instances.","language":"JavaScript","stars":13,"topics":["redis","redis-client","nodejs","database","pubsub"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"multiple-redis Run redis commands against multiple redis instances. Overview Why? How This Library Works Simple Scenario Usage Debug Installation Limitations API Documentation Contributing Release History License Overview This library enables to submit redis commands to multiple redis instances. The client interface is the same as the 'redis' node package at: node redis However, every command actually invokes multiple redis backends. Why Generally in production you would like a failover capability for your redis server. Working with only one redis instance can cause your entire production system to fail in case redis goes down for any reason. For example, when using redis as an express session store and redis is down, users HTTP requests will be rejected. So how can we setup high availability? You could setup redis master and redis slave. That would have those two redis servers sync data between them and you can read it from both. But what if the master redis goes down? If you didn't setup the slave as writable, you are in a possible problem until the master is up. If you did, again there is an issue when master goes back up. Not to mention you have to setup a deployment installation process to set one redis for master and one for slave (well... at least one). So one solution is to be able to change the master in runtime in such a scenario, so now you have a choice to deploy sentinal. But that is even more work on the production team and what if sentinal goes down? Who monito","default_branch":null,"files":null,"tree":[],"storefront":"/r/sagiegurari","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sagiegurari/multiple-redis/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}