You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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