Skip to main content

Events

The domain must publish business level within its scope which other domains may listen out and react accordingly. These events should be published to [HMPPS Domain Events][hmpps-domain-events].

The domain may need to react to business events occurring outside its scope of responsibility i.e. occurring in another domain. It is the responsibility of this domain to listen out for events it is interested in and react according. Events are skinny by default - a domain consuming an event may need to call out to the publishing domain’s API to obtain full data regarding the event.

HMPPS Domain Events

Built using AWS SNS and AWS SQS in a fanout configuration, HMPPS domain events is a facility which enables choreographed processes across HMPPS systems.

Events must be published by all domains for all business-level changes.

Further Reading