Closed RobinQu closed 10 years ago
Implmentation notes:
app.emit()
should only be used to transmit local event within an StackApp
or koa
app isolated in a single process.app.sync()
will emit
the messages and inform the cluster master and then propagate the messages to other workers both inside and outside the current cluster.app.sync()
is the only means to make a message received by all workers across arbitrary machines. Sync of messages are slowed down by the polling methods employed by voka
. This will be discussed in https://github.com/RobinQu/voka/issues/2
At present, single node mode:
This could cause a number of clients misses message when they connect to a different notifier.
A possible solution for multi-node deployments:
A broker could be