Use Redisson with Quarkus #5513
Unanswered
hoangbao123
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to write a GRPC call that involves multiple Redis calls in Quarkus. As GRPC is reactive by nature, I need to write Redis calls in a reactive style as well. Redisson provides support for reactive calls using Project Reactor. However, Quarkus only supports Mutiny. I went through the Mutiny documentation and found that we can convert other Reactive sources like Project Reactor to Mutiny using a converter. After Implementing the changes, everything seems to be working fine. However, I realized that GRPC and Redis use different event loops. GRPC uses Quarkus's event loop, and Redisson uses its own event loop. Would this lead to a thread block or some sort of data race in the future? If anyone has experience with writing Redisson in reactive style in Quarkus, please comment about this issue.
Beta Was this translation helpful? Give feedback.
All reactions