Discussion Forum

Parallelization

The documentation suggests that only the Java api has Parallelization that can scale based on host machine’s number of available CPU cores. Can’t the other client APIs do this?

parallelisation The number of threads to use for server communication int false Scales based on host machine’s number of available CPU cores

In client-node, you can’t, as nodejs is always single-threaded. Also, given Python’s GIL we find it hard to effectively make use of parallelised message batch preparation/sending (which is what this parameter does) due to interactions with the gRPC channel.

You can use multiprocessing in Python: