Hi folks,
Let's say I have an interceptor which dictates which host to route the application request to based on some business logic. In okhttp client, it is straightforward by re-creating the request with a new host url. From my understanding of grpc, a channel/managedchannel is tightly coupled with the host and so(I do understand we could leverage dns resolver etc, but if not for that), an interceptor can't really update the host once the channel is created. If the request has to be routed to a different host compared to what current channel was instantiated, a new channel has to be instantiated, followed by adding all interceptors again and then start serving requests.
Is my understanding correct? If there is any workaround to update the host dynamically by one of the interceptors.
--