-
Notifications
You must be signed in to change notification settings - Fork 866
Open
Labels
questionA question about this library or its usageA question about this library or its usage
Description
The context
I am trying to use direct executor for my spring webflux application, in place of fixed thread pool executor as it seems to be more performant according to posts as this one grpc/grpc-java#5185 .
@Bean
public GrpcChannelConfigurer grpcChannelConfigurer() {
return (channelBuilder, name) -> {
if (channelBuilder instanceof NettyChannelBuilder nettyChannelBuilder) {
nettyChannelBuilder.directExecutor();
}
};
}
The question
I just want to know what if there are any other best practices or config changes, which i need to do if i am using direct executor.
from https://stackoverflow.com/questions/47505022/does-grpc-server-spin-up-a-new-thread-for-each-request, i came to know that we should also modify some bossEventLoopGroup and workerEventLoopGroup, is that required if are using this library instead of just native one.
The application's environment
- Spring (boot):
- grpc-java: 1.65.1
- grpc-spring-boot-starter: 3.1.0.RELEASE
- java: 17
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionA question about this library or its usageA question about this library or its usage