Message Center:PG + pg_notify

Message Center:PG + pg_notify 由 Archify 生成的时序图。 emit(notification) INSERT + dedup row / duplicate pg_notify(aida_notification) LISTEN fan-out /api/notifications/stream list / read / archive 读模型更新 inbox projection 摘要 / 指针 / 动作契约 Producer · 业务事件 · 时序参与者 Producer 业务事件 NotificationService · emit · 时序参与者 NotificationService emit Config DB · notifications · 时序参与者 Config DB notifications Registry · LISTEN · 时序参与者 Registry LISTEN Desktop · 收件箱 SSE · 时序参与者 Desktop 收件箱 SSE 图例 请求 返回 异步追踪 默认消息

读模型

  • • 持久化收件箱摘要与来源指针
  • • 不取代上游业务实体终态

跨实例分发

  • • Config DB + pg_notify 是基础
  • • 无 CONFIG_DB 时用户路由 501

偏好

  • • 偏好只决定是否实时打扰
  • • dedup 命中不二次 fan-out