Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
How to cook lettuce
: (Oklahomer)
twitter: @oklahomers
: LINE LIVE


http://developers.linecorp.com/blog/ja/?p=3771
Redis Client


http://redis.io/clients
Jedis (4300+ stars)
lettuce (400+ stars)
Redisson (1700+ stars)
• Sentinel / Cluster
•
• API
• wiki
•
• github issue gitter
Redis Cluster
resharding
master - slave
failover
node
ClusterClientOptions options = ClusterClientOptions
.builder()
.validateClusterNodeMembership(false)
.build();
redisC...
failover reshard
ClusterTopologyRefreshOptions options =
ClusterTopologyRefreshOptions
.builder()
.enablePeriodicRefresh(1...
Periodic Refresh (since 3.3)
•
• issue #97
•
• Redis cluster
-> adaptive refresh
Adaptive Refresh (since 4.2)
•
• issue #240
•MOVED ASK
•
•
•
redis cluster
lettuce


How to cook lettuce @Java casual
How to cook lettuce @Java casual
How to cook lettuce @Java casual
Upcoming SlideShare
Loading in …5
×

How to cook lettuce @Java casual

2,076 views

Published on

Java の Redis クライアントの一つ lettuce の設定周りについて

Published in: Software
  • Be the first to comment

  • Be the first to like this

How to cook lettuce @Java casual

  1. 1. How to cook lettuce
  2. 2. : (Oklahomer) twitter: @oklahomers : LINE LIVE 
 http://developers.linecorp.com/blog/ja/?p=3771
  3. 3. Redis Client 
 http://redis.io/clients Jedis (4300+ stars) lettuce (400+ stars) Redisson (1700+ stars)
  4. 4. • Sentinel / Cluster • • API • wiki • • github issue gitter
  5. 5. Redis Cluster resharding master - slave failover
  6. 6. node ClusterClientOptions options = ClusterClientOptions .builder() .validateClusterNodeMembership(false) .build(); redisClusterClient.setOptions(options); • 
 •
  7. 7. failover reshard ClusterTopologyRefreshOptions options = ClusterTopologyRefreshOptions .builder() .enablePeriodicRefresh(1,MINUTES) .enableAllAdaptiveRefreshTriggers() .build(); redisClusterClient.setOptions(ClusterClientOptions .builder() .topologyRefreshOptions(options) .build());
  8. 8. Periodic Refresh (since 3.3) • • issue #97 • • Redis cluster -> adaptive refresh
  9. 9. Adaptive Refresh (since 4.2) • • issue #240 •MOVED ASK • • •
  10. 10. redis cluster lettuce 


×