Skip to main content

Router, outbox & delivery worker

Generated from mcp/patterns.registry.json — do not edit by hand; change the registry and run bun run patterns:build.

Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.

Category: Notifications · Tier: light · Risk: low — internal queue/dispatch, no direct external call from the router itself

NotificationService.send() writes an in-app record, evaluates the settings matrix per channel, then queues outbox rows delivered by an in-process worker on containers or a cron sweep on Vercel.

When to use: Use as the single entry point for sending any multi-channel notification instead of calling a channel provider directly.

Docs

Code

Proof


Machine-readable record: notifications-router-outbox in mcp/patterns.registry.json.

← Back to Pattern Library

Think this pattern could be better? Tell us how.

Leave feedback