I recently encountered disruptor and am trying to introduce it to a project that needs to process many events per second.
I understood through searching that events can be sharded (or partitioned) when they can be grouped by a specific key.
But I have a question. (Of course, I'll have to do some performance testing, but...)
Basically, many consumers of the disruptor have a multicast structure, so
When multiple event handlers are sharded and processed through a hash key, the event is allocated and if it is not the corresponding hash key, it is ignored.
Wouldn't it be more efficient to partition the event in the first place so that multiple disruptors consume it to a single consumer?