Re: [grpc-io] Switching from direct executor to threaded executor after rate limiting

2023-11-27 Thread Krishna Sai Veera Reddy
: > On Tue, Nov 14, 2023 at 11:44 AM Krishna Sai Veera Reddy < > krishnasaiv...@gmail.com> wrote: > >> >Is there a problem with running it on another thread? >> This basic rate limiter just increments/decrements a counter and nothing >> more so it seems wasteful to use a

Re: [grpc-io] Switching from direct executor to threaded executor after rate limiting

2023-11-14 Thread Krishna Sai Veera Reddy
how this can be done theoretically. Thank you for your response! On Tuesday, November 14, 2023 at 10:24:53 AM UTC-8 Eric Anderson wrote: > On Wed, Nov 8, 2023 at 9:46 AM Krishna Sai Veera Reddy < > krishnasaiv...@gmail.com> wrote: > >> I am implementing a gRPC service and have

[grpc-io] Switching from direct executor to threaded executor after rate limiting

2023-11-08 Thread Krishna Sai Veera Reddy
Hello All, I am implementing a gRPC service and have a use-case where I need to rate limit RPC calls but would like the rate limiting server interceptor to run directly on the network thread as it is non-blocking(Using direct executor). But once the requests passes through the rate limiter I

Re: [grpc-io] gRPC client fallback from load-balancer to round robin DNS endpoint on LB outage

2023-11-07 Thread Krishna Sai Veera Reddy
r, that would be the best way to differentiate which addresses >> should be used for which child. If you want to use it as an example, it is >> https://github.com/grpc/grpc-java/blob/master/xds/src/main/java/io/grpc/xds/PriorityLoadBalancer.java >> >> >> >> On Mon,

Re: [grpc-io] gRPC client fallback from load-balancer to round robin DNS endpoint on LB outage

2023-11-06 Thread Krishna Sai Veera Reddy
asses the picker from the oppropriate downstream policy. > > On Fri, Nov 3, 2023 at 12:29 PM Krishna Sai Veera Reddy < > krishnasaiv...@gmail.com> wrote: > >> Hello All, >> >> I am working on a gRPC client that connects to a gRPC service fronted by >> an LB but would lik

[grpc-io] gRPC client fallback from load-balancer to round robin DNS endpoint on LB outage

2023-11-03 Thread Krishna Sai Veera Reddy
Hello All, I am working on a gRPC client that connects to a gRPC service fronted by an LB but would like the client to automatically fallback to using round-robin DNS to directly connect to the backend servers when the LB goes down. How do I go about this? Would I need to implement my own