servicetalk
servicetalk copied to clipboard
Offload calls to ServiceDiscovererFilter
Since we were not adding filters before for ServiceDiscoverer
and we assumed that we will write ServiceDiscoverer
and LoadBalancer
(consume of SD stream) implementations, we chose to not offload the Publisher
returned from discover()
. Now with filters there is a higher possibility for user code being added in this path and hence a potential to block the eventloop. So, we should be adding offloading for these calls.
Originating discussion: https://github.com/servicetalk/servicetalk/pull/283#discussion_r253653085