0

I am using spring-data-redis as the data access layer for Redis, for the data distribution, I tried to use the sharding feature of jedis, but looks spring-data-redis DOES NOT support sharding officially, is there any workaround or 3rd party library can support sharding by spring-data-reids?

thanks,
Emre

Emre He
  • 497
  • 11
  • 23

1 Answers1

0

I've used twemproxy successfully to shard data across several redis nodes.

I used spring-data-redis as well as others (non java) clients to access it. Since twemproxy 'speaks' the redis protocol, it is (almost) transparent for the clients.

danielgpm
  • 1,609
  • 12
  • 26
  • Thanks for your response. so to avoid the single point failure, you have to setup the redundancy for the node which running twemproxy, right? – Emre He Nov 27 '14 at 08:50
  • @EmreHe that's correct, you usually have a loadbalancer in front of your proxy to handle failover. – danielgpm Nov 27 '14 at 15:03