You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll expect the worker to report 1ms to 3ms maximum. But instead I get this:
sent 2ms ago
sent 3ms ago
sent 39ms ago
sent 40ms ago
sent 40ms ago
sent 40ms ago
sent 39ms ago
sent 39ms ago
sent 40ms ago
Package-version: 0.1.6 node.js version: v8.11.4 OS name and version: Ubuntu 14.04
Additional context
These are my observations so far:
Sometimes it works well but running it again it shows the 40ms delay.
I can't reproduce this by installing ActiveMQ locally, but the configuration and version of the broker matches.
The test was run in the same region and availability zone, latency is not a factor.
Handling credits manually, for example starting with 2 credits and adding a credit inside the setTimeout produces the same pattern.
If I use two connections (in two containers) in the worker side, instead of using the same connection for receiver and sender, it works as expected. I am not sure why this happen, the messages are small, there is no latency, I think it should work with only 1 connection.
If I remove the sender part from the worker, I don't get the delay either.
The text was updated successfully, but these errors were encountered:
The sender needs to have the required credits, for it to send some messages. Sender.sendable() returns a boolean value, indicating whether it can send messages at that moment. May be logging that information could provide more insights into the reason behind the delay.
Yes, I printed sender.sendable() and it is always true, even when I get the delay. It looks more like a problem with the connection of the worker code, the strange bit is that if I use two connections instead of 1 it works as expected.
Describe the bug
Strange behavior in AWS MQ (ActiveMQ). Messages get delayed by 40ms.
To be honest I am not sure at this point if it is an issue with the library or with AWS MQ.
To Reproduce
Steps to reproduce the behavior:
worker.js
client.js
Expected behavior
I'll expect the worker to report 1ms to 3ms maximum. But instead I get this:
Package-version:
0.1.6
node.js version:
v8.11.4
OS name and version: Ubuntu 14.04
Additional context
These are my observations so far:
Sometimes it works well but running it again it shows the 40ms delay.
I can't reproduce this by installing ActiveMQ locally, but the configuration and version of the broker matches.
The test was run in the same region and availability zone, latency is not a factor.
Handling credits manually, for example starting with 2 credits and adding a credit inside the setTimeout produces the same pattern.
If I use two connections (in two containers) in the worker side, instead of using the same connection for receiver and sender, it works as expected. I am not sure why this happen, the messages are small, there is no latency, I think it should work with only 1 connection.
If I remove the sender part from the worker, I don't get the delay either.
The text was updated successfully, but these errors were encountered: