Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NodeJS发送消息速度好慢 #828

Open
1 task done
Gufang666 opened this issue Sep 3, 2024 · 3 comments
Open
1 task done

[NodeJS发送消息速度好慢 #828

Gufang666 opened this issue Sep 3, 2024 · 3 comments
Labels
stale Pull request is stale type/enhancement

Comments

@Gufang666
Copy link

Before Creating the Enhancement Request

  • 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条左右

@JanYork
Copy link

JanYork commented Sep 3, 2024

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.

@Gufang666
Copy link
Author

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.

Copy link

github-actions bot commented Oct 5, 2024

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 github-actions bot added the stale Pull request is stale label Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Pull request is stale type/enhancement
Projects
None yet
Development

No branches or pull requests

2 participants