Skip to content

Example of a problem I'm having with gRPC multithreading

License

Notifications You must be signed in to change notification settings

andrewcsmith/async_grpcio_rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPC Problems

Nutshell of this comes down to that I can't seem to figure out exactly how to get the server to not block the main thread, and to respond to everything in parallel. Do this:

Terminal #1

cargo run --bin server

Terminal #2

cargo run --bin client

And you should see that the server is processing each item sequentially, blocking the entire thread on the line thread::sleep_ms(1000) on every iteration. Resource Monitor (on Windows) is definitely spinning up the correct number of threads. Help?

About

Example of a problem I'm having with gRPC multithreading

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages