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
Send events to dispatchers even if there are no consumers
If you are using the demand dispatcher (the default)
and a consumer leaves, any demand from this consumer
is stored as pending. The idea is, if a consumer asks
for 10 events, and then leaves, the producer was already
notified of those 10 events. If another consumer joins,
then those previously asked 10 events should be sent to
next consumer.
However, if a consumer left and there were no additional
consumers, any event sent by the producer would be
buffered immediately, and the dispatcher would never know
its pending demand was satisfied.
This would also happen in cases you had 2 consumers,
both asked for 5 events, and then one left. The producer
could send 8 events, and the dispatcher would never take
into account those 3 additional events were satisfying
a pending demand.
This patch addresses both issues.
Closes#311.
Closes#312.
0 commit comments