-
Notifications
You must be signed in to change notification settings - Fork 106
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
Option to send messages in bulk #65
Comments
You can send multiple messages without waiting for the callback to return. For example:
Will send each message sequentially, waiting for each to be finished, but:
Will fire off all your messages at once, since we're not
Which will send a big block of messages all at once, wait for all of them to be successfully delivered, and error back if any one of them fails (although, you don't know which ones failed in this case). |
Thank you so much for responses. I successfully apply new implement to send multiple messages. The app's performance improved perfectly. But I have a problem. when a large number of request call sendToQueue, node app reached max heap and die. Would you mind raising any solution for this case? |
|
Fixed by #84. |
I see your idea in _messages on ChannelWrapper is data preserving. But i realized that the performance is low (in my system only ~300msgs/s rate from producer to RabbitMQ) - One message can only be sent after previous message has callback return. Any option to send message in bulk asynchorous without waiting others. Or you can suggest me some properly way to do this. Thank you so much.
The text was updated successfully, but these errors were encountered: