Note
Because this client uses grpcio
library, it is safe to share instances across threads. In multiprocessing scenarios, the best practice is to create client instances after the invocation of os.fork
by multiprocessing.Pool
or multiprocessing.Process
.