EventRouter is an internal mechanism used by Context, that exposes publicly a send method, but its implementation can own multiple senders and have internal logic for routing given event to a right sender.
EventRouter is a trait and must be dyn-compatible. We need type-erasure, as Context and Actor or generics over Event, but multi-broker implementation of it will need Topic information.
EventRouteris an internal mechanism used byContext, that exposes publicly asendmethod, but its implementation can own multiple senders and have internal logic for routing given event to a right sender.EventRouteris a trait and must be dyn-compatible. We need type-erasure, as Context and Actor or generics over Event, but multi-broker implementation of it will need Topic information.