nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.82k stars 305 forks source link

Does webdis support multiple redis servers? #85

Closed rogeryu23 closed 10 years ago

rogeryu23 commented 10 years ago

I know predis supports redis shards, does webdis support as well?

nicolasff commented 10 years ago

Hello,

Webdis does not support more than one redis server, no. Redis is not a distributed database and does not provide recommendations for the distribution of keys. So it is likely that two applications implementing sharding on top of redis would have different ways of selecting redis nodes, and would be incompatible. The redis "cluster" project is an attempt at providing this feature, but it has not yet been released as stable software. In the meantime, have a look at twemproxy which might be enough for you.

Regards, Nicolas

rogeryu23 commented 10 years ago

great! thanks