Hacker News new | ask | show | jobs
by oimaz 4073 days ago
can this loadbalance redis and memcache?
2 comments

Don't know for NGinx yet, but one can balance with HAProxy, e.g. create 2 backends for read/write respectively.

http://blog.haproxy.com/2014/01/02/haproxy-advanced-redis-he...

Yes it could. You would either need to have redis slave replication setup and then only load balance your read-replicas, or else you would need to use sticky sessions to always send requests back to the right node.. I'm not sure if sticky sessions is possible with TCP loadbalancing in nginx but I assume it is.