Hello,
Suppose I have a Servicer A whose request handler needs to call another Servicer B. Creating a channel and a stub every time A’s handler runs doesn’t seem efficient or sensible.
What’s the suggested/proper way to chain gRPC calls? (In Python, if that matters.)
Can I hook into the Servicer’s boot, open a channel and create a stub, and then pass down that stub through the context? Is there some interceptor support that’s useful?
Which leads me to the next question: can I control how many threads and processes a Servicer can spawn for request handling? I assume each of those needs their own channel and stub to call to another Servicer?
Much thanks!
Jens