-
Notifications
You must be signed in to change notification settings - Fork 10
Do we need to use noDelay
?
#21
Comments
Need to see if this is still an issue with a remote RabbitMQ. |
I'm confident #58 is the bottleneck for RPC. |
Aye this is a separate issue though. As in, limits it to exactly 25 messages/s. :D |
Apologies if it is not the right place to post this comment.
While I haven't seen any delivery issues in local rabbitmq server (seen 800 msg/sec for my app ). |
@tejkumar51 No problem! Watch this thread as we'll be trying to solve it here. Same issue here though - locally it's at lightning speed but for remote instances we're getting that nasty 25 per-second lock. Does look like it's something to do with the underlying AMQP client. What are you using to communicate with RabbitMQ? The issue referenced at the top of this thread seems to have solved the problem using a |
Thanks @jpwilliams ! |
@tejkumar51 Mm I've seen the same slight increases here. Contrary to my tests when this issue was created (9 months ago now!), the Looks like Pika already disables Nagle's algorithm (that line is the same as Is this just how slow RabbitMQ can be over a network? I knew it wasn't intended to be communicated with over WAN, but the slow-down seems excessive, no? |
@jpwilliams Yes over the network I feel it has very slow rate , reference from https://stackoverflow.com/questions/20516450/ridiculously-slow-simultaneous-publish-consume-rate-with-rabbitmq I have observed one thing from my side:
|
@tejkumar51 Aye using You could also try making sure that you have separate channels for publishing/subscribing and removing durability/persistence options should help, though usually not to a huge extent. In regards to this lib:
I'm starting to think that maybe RabbitMQ over WAN is just much, much slower. Seems mad that it's that bad though. I guess our problem is seeing these rates for RPC (publisher -> server -> consumer -> server -> publisher) so there's a lot of time needed for packets travelling across the WAN. |
Thanks for the info @jpwilliams ! |
No worries, @tejkumar51. I'll close this as we've fixed the issue with this lib, but feel free to contact me if you need help with anything. |
senecajs/seneca-amqp-transport#63
Seem to be getting limited to 25 messages per second when contacting a remote Ubuntu RabbitMQ server, though setting
noDelay
doesn't seem to make any difference to that at all?The text was updated successfully, but these errors were encountered: