Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

does redis cluster support transactions ?

i'm a newbie for redis, i've just been using redis for couple of months. Currently i'm using 2.8.x stable version but i'm trying to use 3.0.0 to import redis cluster funtions. i'm using java jedis as client,and here is my problem:i found that the latest version of Jedis client support redis cluster lua scripting(JedisCluster.evalsha), but nowhere i can find pipelining and transaction related functions, so i was wondering if it is Jedis that have not implement it(pipeline, transactions) yet or is it just redis cluster does not support pipelining and transactions at all?

like image 372
Kim Avatar asked Sep 27 '22 15:09

Kim


1 Answers

JedisCluster didn't implement Transaction and Pipeline since it is hard to implement. Redis can send MOVED or ASK while it's in cluster mode, and it means that we should take care of moving slot between nodes.

I was thinking about pipeline mode of JedisCluster, but no further research is being held. https://groups.google.com/d/msg/jedis_redis/u6j8slokO3E/Dh5Q94TRjJUJ

Currently Jedis team is focusing to stabilize / provide more APIs to JedisCluster.

like image 92
Jungtaek Lim Avatar answered Oct 13 '22 01:10

Jungtaek Lim