The light kernel event handler: routes an event by a key instead of a path.
The small sibling of RouterEventHandler. Installed as stone.kernel.eventHandler by
@KeyRouting(), it plugs onto any adapter that runs the kernel: it extracts a routing key from a
configurable property of the incoming event and dispatches through the key-router to the matching
handler (a bus event, a realtime gateway method, a CLI command...). It never imports the full
Router, so bundlers tree-shake the heavy router away when only @KeyRouting() is used.
The light kernel event handler: routes an event by a key instead of a path.
The small sibling of RouterEventHandler. Installed as
stone.kernel.eventHandlerby@KeyRouting(), it plugs onto any adapter that runs the kernel: it extracts a routing key from a configurable property of the incoming event and dispatches through the key-router to the matching handler (a bus event, a realtime gateway method, a CLI command...). It never imports the fullRouter, so bundlers tree-shake the heavy router away when only@KeyRouting()is used.