开发者

amqp library is thread-safe in node.js?

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜