Hi Guys, Can someone please answer a few questions about GRPC threading model?
If I create a ManagedChannel thusly: NettyChannelBuilder builder = NettyChannelBuilder.forAddress( host, port ); builder.eventLoopGroup( new NioEventLoopGroup(2) ); builder.executor( new ThreadPoolExecutor( 1, 1, 0L, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<>( 10000 )); 1) The 2 EventLoop threads will be used to process data from the network? 2) The single user thread will be used for callbacks from grpc layer to my application layer? Now if I change my ManagedChannel to: NettyChannelBuilder builder = NettyChannelBuilder.forAddress( host, port ); builder.eventLoopGroup( new NioEventLoopGroup(2) ); builder.directExecutor(); 1) Will one of the event loop threads will do the work of user thread? 2) When I try this scenario, I see that a thread called *[grpc-default-executor-0] * is created. What does this thread intended to do? Thanks -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/54978f9e-1836-4f1c-a448-b0a5fc4150ab%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
