Nordix / eredis_cluster

eredis_cluster is a Redis Cluster client in Erlang. This is an actively maintained fork used and sponsored by Ericsson via Nordix Foundation.
MIT License
17 stars 19 forks source link

Is this client working with Redis standalone? #68

Open goldyfruit opened 1 year ago

goldyfruit commented 1 year ago

Hi,

I would like to know if this client is only working with Redis Cluster or if it is working as well with a Redis standalone instance?

I know https://github.com/Nordix/eredis is existing but we were wondering if we have to support both clients or just have eredis_cluster handling both use cases.

Thanks.

zuiderkwast commented 1 year ago

Hi!

I believe there is some code for this, yes. If CLUSTER SLOTS fails, there is a fallback to standalone mode. However, there is a lot of overhead compared to using a simple eredis connection.

Btw, in case you're trying out different solutions, we are now actively working on another more efficient cluster client: https://github.com/Ericsson/ered