Creates a new ArvoEventRouter instance with the provided configuration. Validates source format and ensures unique handlers per event type.
When handlers have duplicate event types or source format is invalid
const router = createArvoEventRouter({ source: 'payment.service', handlers: [paymentHandler, notificationHandler], executionunits: 10}); Copy
const router = createArvoEventRouter({ source: 'payment.service', handlers: [paymentHandler, notificationHandler], executionunits: 10});
Configuration for router initialization including source, handlers, and execution metrics
Configured ArvoEventRouter instance
Creates a new ArvoEventRouter instance with the provided configuration. Validates source format and ensures unique handlers per event type.
Throws
When handlers have duplicate event types or source format is invalid
Example