gRPC Client call switches from event-loop thread to executor thread #30539
senthilredhat
started this conversation in
Community
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a gRPC service calling another gRPC service. During response transformation, the thread switches from an event loop to an executor thread. After the gRPC call, the code tries to access Mutiny.session, which throws an error because the thread is an executor thread.
What can I do to avoid thread switching?
In the above code, permissionsServiceStub is a gRPC service,
Here are the sys outs from the above code during the execution
Beta Was this translation helpful? Give feedback.
All reactions