Replies: 1 comment 5 replies
-
Thanks a lot. The issue you're seeing is that JSON serialization happens on the I/O thread which keeps your I/O thread busy. Have you tried using a separate thread pool for encoding/decoding? With a configuration tweak on the Lettuce side you could be able to address the issue: ClientOptions options = ClientOptions.builder().publishOnScheduler(true).build();
// later, use it with LettuceClientConfiguration.
LettuceClientConfiguration.builder().clientOptions(options).build(); |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, we've encountered a strange problem under high load in our reactive redis client -- the SET command in service takes around 20 seconds according to JVM metrics and the CPU is heavily loaded. But Redis metrics shows that the commands are executed quickly and consistently.
After various tests, I've concluded that the issue might be due to the volume of the value we are writing, which is about 6 MB. If the size of the value is reduced, everything works stably. I added metrics to the serializer, and they show that it works for 10-30ms.
Has anyone encountered this problem before?
spring boot 2.7.15
lettuce 6.1.10
netty 4.1.97
reactor 3.4.32
Beta Was this translation helpful? Give feedback.
All reactions