RabbitMQ recommends not sharing channels between threads.
3. Don’t share channels between threads.
Don’t share channels b开发者_如何学Cetween threads, as most clients don’t make channels thread-safe for performance reasons.
And libuv inside Node.js either makes requests to the kernel or handles tasks in its own thread pool.
Now, Assumes one connection, one channel.
Multiple clients are requesting to publish messages at the same time. I expect multiple threads in libuv's thread pool to publish messages using a single channel.
Is it thread-safe when used as above? Or, am I misunderstanding what?
精彩评论