Browse Notifications

stable · overview · 0.1.0

Notifications

從業務意圖到傳送

Project Backend 建立 Notification Intent,說明要使用的 template、locale、Delivery Endpoint 與 variables。MiniCenter 驗證 client-scoped Sender Profile、template、endpoint 與 consent,再建立 Notification Delivery 交給 durable worker。

Notification Intent 是 Project Backend 已決定要通知的業務事實;MiniCenter 不替 Project Backend 決定何時通知、收件人的偏好或 marketing purpose。

Project Backend 應把 Notification Catalog 保存在自己的 repository,並在 CI 透過驗證 Notification Catalog確認 event key、purpose、locale、variables 與 MiniCenter 已核准的 Sender Profile 和 template 相容。

Channels 與可靠性

目前平台的 delivery channels 包含 email、FCM、APNs、LINE 與 Web Push。每個 Delivery Endpoint、Sender Profile、template 與 consent 都限制在同一 Project Client。

Delivery 以 PostgreSQL durable operation 保存,provider 的暫時失敗會 exponential backoff retry;超過嘗試上限後進入 dead-letter。建立 Intent 成功只代表請求已持久化,不代表 provider 已送達。

送出 Notification Intent開始,再閱讀channels、delivery outcome 與 retry

Guides

API Reference

Event Reference