BlogsVercelNotification System

Notification System

Notification System

1
posts
2022

Vercel has launched a new, robust notification system for its platform, leveraging the capabilities of Knock. This system provides real-time, per-user in-app feeds, customizable multi-channel notifications (email, in-app), and batching for noisy events like domain misconfigurations. It allows for dynamic updates to notification preferences without redeploying infrastructure. The system is observable through the Knock dashboard, enabling debugging and performance evaluation. Key features include notifications for deployment failures and batched domain misconfiguration alerts.

2022

Build a powerful notification system with Next.js and Knock

12/16/2022

This post details Vercel's implementation of a new notification system using Knock. It covers the technical decision-making process, highlighting the need for iteration speed, reliability, and observability. The integration involves using Knock's API for triggering workflows (e.g., `new-comment` workflow with recipients, data, actor, cancellationKey, tenant) and its React library for building in-app notification feeds and preference management. Specific examples include setting up `KnockFeedProvider` and `NotificationToaster`, and the use of WebSockets for real-time updates. The post also details specific notification types like deployment failure alerts and batched domain misconfiguration notifications, showcasing the use of Knock's batch function.