Member-only story
Is 10000 Messages in 2.15 seconds with Python and gRPC Impossible?
2 min readApr 1, 2019
In this article I will demonstrate a gRPC server, a client and a multi-process client using python3.
I manage to process 10000 messages from the gRPC clients on the gRPC server in 2.15 seconds on an Intel Core i7–8550U 1.8GHz
The code I used in the article is hosted at https://github.com/Sean-Bradley/Seans-gRPC
The steps to set this up yourself
git clone https://github.com/Sean-Bradley/Seans-gRPC.git
$ virtualenv venv
$ source venv/Scripts/activate
$ pip install -r requirements.txt
Once the pip install has finished,
- Start the server
$ python -m server
- Run the single process client, start many if you like.
$ python -m client
- or start the 1 or more multiprocessing clients with
$ python -m multiprocess