Closed kenspirit closed 2 years ago
The direction looks great! I have dropped some comments to clean it up a bit. :)
Thank you! :green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:
Can you please try using this in Broadway? We should be able to pass this option whenever we have a DemandDispatcher.
I have already tried that in Broadway in that experiment project I tested before. After passing the option, the demand will not be all passed to the first consumer. :D
Based on the discussion in Broadway issue: The intention of random subscription in Subscriber does not work as expected, an option
:shuffle_demands_on_first_dispatch
is added toDemandDispatcher
to allow shuffle thedemands
on first event dispatch.I am not sure whether the default value should be
false
- aligned to previous behavior ortrue
. Would the test case on shuffling enough?