rocketmq-clients icon indicating copy to clipboard operation
rocketmq-clients copied to clipboard

[NodeJS发送消息速度好慢

Open Gufang666 opened this issue 1 year ago • 3 comments

Before Creating the Enhancement Request

  • [X] I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Programming Language of the Client

Node.js

Summary

测试单节点for循环进行消息发送,每秒只能发送700条左右

Motivation

测试单节点for循环进行消息发送,每秒只能发送700条左右

Describe the Solution You'd Like

测试单节点for循环进行消息发送,每秒只能发送700条左右

Describe Alternatives You've Considered

测试单节点for循环进行消息发送,每秒只能发送700条左右

Additional Context

测试单节点for循环进行消息发送,每秒只能发送700条左右

Gufang666 avatar Sep 03 '24 05:09 Gufang666

Perhaps you could try putting the consumer and producer into a node.js worker to avoid the latency caused by the single-threaded event loop. I'm not sure if the latency is caused by having too many queues in the event loop, but you could try it.

JanYork avatar Sep 03 '24 17:09 JanYork

I only tested the message sending rate by performing a loop-based message sending test. Both the C++ and Java clients achieved about 2000 messages per second, but the rate for the Node.js client is significantly lower. I'm not sure if there's an issue with the testing method.

Gufang666 avatar Sep 04 '24 11:09 Gufang666

This issue is stale because it has been open for 30 days with no activity. It will be closed in 3 days if no further activity occurs.

github-actions[bot] avatar Oct 05 '24 00:10 github-actions[bot]

This issue was closed because it has been inactive for 3 days since being marked as stale.

github-actions[bot] avatar Oct 09 '24 00:10 github-actions[bot]