grpc / grpc-web

gRPC for Web Clients
https://grpc.io
Apache License 2.0
8.49k stars 764 forks source link

High Round Trip Latency In Examples #660

Open pathammer opened 4 years ago

pathammer commented 4 years ago

I have observed higher latency than expected latency when running the HelloWorld and Echo examples. Simply add Console.time() Console.timeEnd() to the demo client. I got 30-80ms round trip latency which is much higher than I would expect running a purely local example. Might be related to #571

pathammer commented 4 years ago

Forgot to mention I'm using the default example instructions using Docker+envoy

uschen commented 4 years ago

saw this too.

i think people are optimizing them? https://github.com/grpc/grpc-web/issues/645

however, without json encoding for grpcweb, there are so many various issues, including performance and debugbility