Hi Eric,
After adding threadpool size to 100, now I am getting throughput 1.6k req/sec,but same with rest (Get method) it's 2.7k req/sec.
my client is jmeter and client and server is on same machine.
Do I need to set channelType also for better performance.
Below is my code:
@Bean
GrpcServerConfigurer grpcServerConfigurer() {
return builder -> {
((NettyServerBuilder) builder)
.executor(Executors.newFixedThreadPool(100));
};
}
@GrpcService
public class MyGrpcService extends SquareRpcGrpc.SquareRpcImplBase {
@Override
public void findSquareUnary(Input request, StreamObserver<Output> responseObserver) {
int number = request.getNumber();
responseObserver.onNext(
Output.newBuilder().setNumber(number).setResult(number * number).build()
);
responseObserver.onCompleted();
}
--
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 grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/1cc1f02b-722d-4b4e-babe-443da624632an%40googlegroups.com.