-
-
Notifications
You must be signed in to change notification settings - Fork 121
Conversation
merge with upstream master
use steed.each instead of for loop
tests are failing on all envs :/ |
Was editing this from github web editor, my mistake to remove |
setImmediate(function(){ | ||
cb(topic, message, options); | ||
}); | ||
next(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you using setImmediate
there? And why are you calling done()
before the actual callback is called?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering a huge (multi hundred thousands) list of forwarder callbacks, Does't setImmediate
improve the iteration?Or steed does the same job?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can bring next
inside setImmediate
right after cb
returned. I just felt slow client callbacks should be don't care! so that we can report back from .publish
ASAP!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
introducing setImmediate there will increase the total latency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will change this, thank you
I still do not understand why using |
I believe it is related to #148 |
Solving this issue will be more complicated that a simple fix. You probably would want to have a queue-like thing. Using |
For the move, I'm waiting for aedes to be production ready, and I can help you anything around this. |
@behrad how many packets are you delivering? Aedes can deliver roughly 100k msg/s (mosca/ascoltatori 25k msg/s). |
multiple hundred thousands is my target. |
No description provided.