Events & Notifications
RapidREST has several related but distinct systems for reacting to things that happen outside the normal request/response cycle, and for reaching people (or other services) when something needs their attention:
- Events -
@EventListener,@OnEvent, and the Redis-backed event bus for cross-service communication. - Notifications -
NotificationUtils, for pushing real-time messages to specific connected users. - Messaging -
MessagingUtils, for templated email, Slack, and SMS. - Alerts -
AlertUtils, for PagerDuty/Opsgenie-style incident alerts aimed at your team, not your users.
Events and notifications are often used together. An event fires, and a notification goes out because of it. But all four solve different problems, so it's worth understanding them separately.