From 7491936742ff4f1474fa5bf99dc7ddf0e034e14d Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Wed, 25 Dec 2019 11:41:25 +0100 Subject: [PATCH] Add eventbus pkg --- pkg/eventbus/README.adoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkg/eventbus/README.adoc b/pkg/eventbus/README.adoc index 7a475a345..11a103ebb 100644 --- a/pkg/eventbus/README.adoc +++ b/pkg/eventbus/README.adoc @@ -14,6 +14,17 @@ Resource types are identifiers of internal resources, like user, role, request, Type describes direct or indirect user action or some other event in the system. +#### Deferred events + +Deferred events (onTimestamp and onInterval) are executed by scheduler package service. + +#### Manual events + +Manual events (onManual) are a special case. +Events are not (nor should be) triggered directly or through eventbus. + +We use it to route requests and pack attributes from the API to the Corredor service + ### Event matcher Matcher is a function on event that helps filtering fired events. @@ -33,6 +44,7 @@ Constraint checker procedure will call matcher for each constraint. All constraints must match. First non-match will break constraint checking procedure. + ## Triggers Trigger is combination of (event matching) rules/constraints and event handler.