Questions tagged [lettuce]

Lettuce can stand for two things: * A behavior-driven development (BDD) tool for Python: http://lettuce.it/ * A Redis client for Java: http://lettuce.io

Lettuce can stand for two things:

389 questions
6
votes
0 answers

How I can make my custom data class as StatefulRedisConnection value type?

Lettuce Core API has RedisClient class that contains these methods: public StatefulRedisConnection connect() { return this.connect(this.newStringStringCodec()); } public StatefulRedisConnection
Seydazimov Nurbol
  • 1,404
  • 3
  • 10
  • 25
6
votes
1 answer

io.lettuce.core.RedisCommandTimeoutException: Command timed out

io.lettuce.core.RedisCommandTimeoutException: Command timed out after 10 second(s) at io.lettuce.core.ExceptionFactory.createTimeoutException(ExceptionFactory.java:51) ~[lettuce-core-5.1.6.RELEASE.jar:?] at…
Lakshmi Kanth
  • 101
  • 1
  • 3
6
votes
1 answer

Cannot retrieve initial cluster partitions from initial URIs [RedisURI [host='127.0.0.1', port=7001]]

I am working on Lettuce cluster Java client. It is set up inside a bolt topology (Apache Strom). spout is reading data from kafka and passing it to bolt. However, when I am starting my topology, I am getting below error message and program…
roottraveller
  • 7,942
  • 7
  • 60
  • 65
6
votes
1 answer

Integrating Behave or Lettuce with Python unittest

I'm looking at BDD with Python. Verification of results is a drag, because the results being verified are not printed on failure. Compare Behave output: AssertionError: File "C:\Python27\lib\site-packages\behave\model.py", line 1456, in run …
Frank Kusters
  • 2,544
  • 2
  • 21
  • 30
6
votes
2 answers

how to specify which lettuce scenario to run

how to specify which lettuce scenario to run? in using python lettuce test framework, I ran frequently into this case, one scenario failed and then I want to zoom in to this scenario to fix this scenario can we specify which lettuce scenario to run…
zinking
  • 5,561
  • 5
  • 49
  • 81
5
votes
0 answers

How to connect to AWS ElastiCache using primary and reader endpoints

My application uses AWSElastiCache for session storage. Created a redis instance (Cluster Mode Disabled) with 1 primary and 2 replica nodes. I am using Lettuce as Redis client which is internal to Spring boot to connect with Redis. I am using…
5
votes
1 answer

What are the differences between Lettuce and Pyccuracy?

Can someone with experience using both Lettuce and Pyccuracy describe their differences both in terms of features and uses? From the Lettuce Overview documentation: Lettuce is a very simple BDD tool based on Cucumber, which currently has many more…
Matthew Rankin
  • 457,139
  • 39
  • 126
  • 163
5
votes
3 answers

(lettuce) READONLY You can't write against a read only slave

I need some help, Our service uses the lettuce 5.1.6 version, and a total of 22 docker nodes are deployed. Whenever the service is deployed, several docker nodes will appear ERROR: READONLY You can't write against a read only slave. Restart the…
singgel
  • 121
  • 1
  • 1
  • 7
5
votes
1 answer

OutOfDirectMemoryError using Spring-Data-Redis with Lettuce in a multi-threading context

We are using spring-data-redis with the spring-cache abstraction and lettuce as our redis-client. Additionally we use multi-threading and async execution on some methods. An example workflow would look like this: Main-Method A (main-thread) -->…
5
votes
0 answers

Redis PubSub Lettuce: How is back pressure handled?

We are using RedisPubSubReactiveCommands and calling the subscribe and observeChannels methods of Lettuce. In case of a fast publisher and a slow subscriber, how is the back pressure handled? Since publishers and subscribers are independent in…
Dollyg
  • 317
  • 2
  • 7
5
votes
1 answer

spring-data-redis, empty list attribute value becomes null

I'm in the process of porting some microservices from SpringBoot1.5 to 2.1. We are using spring-data-redis. it seems the default internal moves from jedis to lettuce. The thing is we now observe some weird behaviours, when we save an object and…
MikaelW
  • 1,145
  • 4
  • 11
  • 29
5
votes
0 answers

How to fix low Lettuce client performance with Redis Cluster (Elasticache)?

Lettuce client performs poorly with Redis Cluster, as bad as 10 times slower compared to single master Redis. I started to notice the issue when number of concurrent requests to the client was around 100. When this issue was observed Redis instances…
schatten
  • 1,497
  • 1
  • 12
  • 19
5
votes
0 answers

How To Config Lettuce Redis cluster Async Connection Pool

I'm configuring my lettuce rediscluster pool. When I configure it according to the official documentation, the connection pool cannot be initialized properly and I can't get the connection. The official docs state: RedisClusterClient clusterClient =…
Mr.j
  • 71
  • 1
  • 4
5
votes
1 answer

Redis is single thread. Then why should I use lettuce?

After Redis 4.0, Redis can execute multi thread some functions (1. deleting objects in backgrounds, etc.), but Redis still usually uses single thread. FAQ - Redis So I guess lettuce is useless. Lettuce is redis client that can use multiple threads…
Sujung Shin
  • 51
  • 1
  • 4
5
votes
1 answer

What does the Redis 'redis.publish()' method do?

What does redis.publish(); method do in the following module. redis.publish("WordCountTopology", exclamatedWord.toString() + "|" + Long.toString(count)); public void execute(Tuple tuple) { String word = tuple.getString(0); …
Ganesh Pandey
  • 5,216
  • 1
  • 33
  • 39
1
2
3
25 26