Blocking operations and ZeroMQ

I am developing a distributed system in which a single-threaded server handles intensive work with the CPU. These operations are triggered by ZeroMQ network messages.

If a single-threaded process does heavy CPU work, will there be I / O locks (ZeroMQ)?

Thank!

+3
source share
1 answer

You will block reading messages if there are no messages to read.

, ZMQ_HWM ( , , ). , , ( ), .

ZMQ_NOBLOCK, - zmq_send/zmq_recv .

+5

Source: https://habr.com/ru/post/1764398/


All Articles