Skip to content

Advice for debugging long round trip time in multilingual deployment #2284

Answered by kvc0
C-Loftus asked this question in Q&A
Discussion options

You must be logged in to vote

Nearly all of my experience with tonic is via http2. For reference, at my day job, we have a go sdk customers use (on their own servers) that connects via normal tls http2 to remote servers (that I own) running tonic. P999 latency for payloads of this size is on the order of 1-3 milliseconds, assuming they're in the same cloud and depending on whether or not they're in the same AZ. I'm not saying this to brag, but to reassure you that multilingual grpc with < 1s latency is a very reasonable ask 😆 ❤️


First and easiest, a tokio trivia: Your main is fine, except that it runs your server "off the runtime." This can cause delays mostly for new connections (possibly more). Try changing one lin…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by C-Loftus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants