service
Notification Service

Notification Service

Sends customers email, SMS and push notifications in response to events from across Acme Inc, honouring each customer's channel preferences.

Service

Overview

The Notification Service is the single place Acme Inc talks to customers outside the storefront. It consumes events from other domains, looks up the customer’s channel choices in Notification PreferencesNotification PreferencesContainerv1.0.0PostgreSQL database holding each customer's notification channels, opt-ins and quiet hours.Ownercustomer-platformMapView docs, sends the message and publishes Customer NotifiedCustomer NotifiedEventv1.0.0Published after a notification has been sent to a customer on one of their preferred channels. Ownercustomer-platformSchemaMapView docs.

Notifications sent

EventCustomer message
Order ConfirmedOrder ConfirmedEventv1.0.0Published when payment, inventory, and order validation have succeeded and the order is ready for fulfilment. Ownerordering-platformSchemaMapView docsOrder confirmation with summary and delivery estimate.
Shipment DeliveredShipment DeliveredEventv1.0.0Published by the carrier when a shipment has been delivered to the customer. Ownerfulfilment-platformSchemaMapView docsDelivery confirmation.
Payment FailedPayment FailedEventv1.0.0Published by Stripe when a charge fails. Ownerpayments-platformSchemaMapView docsAsk the customer to update their payment method.
Refund ProcessedRefund ProcessedEventv1.0.0Published by Stripe when a refund has been processed. Ownerpayments-platformSchemaMapView docsRefund confirmation.
Review PublishedReview PublishedEventv1.0.0Published when a submitted review passes moderation and becomes visible on the storefront. Ownerreviews-platformSchemaMapView docsLet the reviewer know their review is live.
Loyalty Points EarnedLoyalty Points EarnedEventv1.0.0Published when a customer earns loyalty points for a completed order. Ownercustomer-platformSchemaMapView docsNew points balance.
Return ApprovedReturn ApprovedEventv1.0.0Published when a return request passes the returns policy and the customer can send the items back. Ownerfulfilment-platformSchemaMapView docsReturn label and drop-off instructions.

Architecture diagram

Messages for this service

Sends messages (1)

Quickly find the message you need by searching for the name, type, or summary.
NameVersionTypeSummary
Customer Notified
v1.0.0eventPublished after a notification has been sent to a customer on one of their preferred channels.

Receives messages (7)

Quickly find the message you need by searching for the name, type, or summary.
NameVersionTypeSummary
Order Confirmed
v1.0.0eventPublished when payment, inventory, and order validation have succeeded and the order is ready for fulfilment.
Shipment Delivered
v1.0.0eventPublished by the carrier when a shipment has been delivered to the customer.
Payment Failed
v1.0.0eventPublished by Stripe when a charge fails.
Refund Processed
v1.0.0eventPublished by Stripe when a refund has been processed.
Review Published
v1.0.0eventPublished when a submitted review passes moderation and becomes visible on the storefront.
Loyalty Points Earned
v1.0.0eventPublished when a customer earns loyalty points for a completed order.
Return Approved
v1.0.0eventPublished when a return request passes the returns policy and the customer can send the items back.
Event-driven architecture documentation: Acme Inc