Skip to content

[Backend] Add notification delivery fan-out #308

@Kaylahray

Description

@Kaylahray

Description

Notifications are retrievable, but there is no richer delivery pipeline for fan-out, live updates, or prioritized notification types.

User Story

As a user,
I want to receive timely notifications for important actions,
so that I do not miss replies, likes, entries, or moderation events.

Requirements and Context

  • Files: app/app/api/notifications/route.ts, app/app/api/notifications/[id]/route.ts, app/lib/notifications.ts
  • Add a delivery layer that can fan out new notifications from core events
  • Support unread counts, read state, and prioritized delivery types
  • Make the API suitable for polling today and live transport later

Suggested Implementation

// NOTIFICATIONS DELIVERY
// 1. Create notifications from source events.
// 2. Persist read/unread state consistently.
// 3. Expose unread counts and recent activity.
// 4. Keep the payload ready for realtime transport later.

Acceptance Criteria

  • Notification creation can be triggered from product events.
  • Unread/read state remains consistent.
  • The delivery layer is reusable for future realtime transport.

Submission Guidelines

  • Branch: feat/notification-fanout
  • Depends on: notification storage and event sources
  • PR: feat(backend): add notification fan-out and delivery layer

Metadata

Metadata

Assignees

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions