Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.13 KB

alerting.md

File metadata and controls

26 lines (22 loc) · 1.13 KB

Alerting

Alerts are sent when an asynchronous event indicating an update or delete is received from the BookingSystem. The AlertEnricher adds further information to the alert before it is saved and sent to the Alerter. The Alerter sends the event to the application layer based on the user's preferences. E.g., if the user has disabled push notifications the alert could be suppressed.

The alert is fired on asynchronous call from the Booking System because the alert should only be fired after the booking has been updated in the booking store. This avoids the user receiving an alert but the app not showing any changes.

Sequence diagram

Booking update

sequenceDiagram
    BookingSystem-)AlertEnricher: Booking update
    AlertEnricher->>AlertEnricher: enrich alert
    AlertEnricher-)AlertStore: Store alert
    AlertEnricher-)Alerter: alert
    Alerter->>UserSystem: Get user alert data
    UserSystem-->>Alerter: user data
    Alerter-)Application: Send alert
Loading

User acknowledges alert

sequenceDiagram
    Application->>AlertStore: Acknowledge
    AlertStore-->>Application: [success]
Loading