Skip to content

0xprames/tonic-ping-pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tonic-ping-pong

grpc in rust bidirectional streaming example using tonic

this example uses tokio's mpsc channels to stream messages between the client and server
constructing a stream from iters that yield also works - but wasn't as neat/intuitive

an initial ping with value 0 is sent from client-> server, the server increments it and sends it back via response stream, which gets sent back to the server via the client req stream and this loops endlessly

instructions to run

cargo run --bin pingpong-server cargo run --bin pingpong-client

About

grpc in rust bidirectional streaming example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages