In many cases, applications need to run certain operations on events related with certain resources or with any resources of certain types. For example, in a customer context, an anti-spam application may need to add each new domain to the list of protected domains and remove a domain from the list when it is removed from the customer context. Therefore, the corresponding application service must be notified about events of adding and removing domains, that is events related with all resources of a certain type.
In this document:
APS controller implements the publisher-subscriber relationship between resources. In this model, a resource, event subscriber, is interested in receiving notifications of events related with publishers, which can be another resource or a set of resources of a certain type. Publishers are known as event sources in the event management system. Application services subscribe their resources to events by sending a REST request to the APS controller with explicit specification of the following parameters:
To receive event notifications from an event publisher, the event subscriber must satisfy one of the following conditions:
There are general and specialized event types as explained in this document: