Scheduled Notification Infrastructure
Component Detail
Infrastructure
high complexity
backend
2
Dependencies
3
Dependents
1
Entities
0
Integrations
Description
Infrastructure layer that wires the Vercel Cron Job scheduler to the reminder evaluation and delivery pipeline. Runs at configurable intervals (default every 6 hours), invokes the Reminder Service to evaluate scenario rules, and delivers resolved reminders via the FCM push notification infrastructure already established by the push-notifications feature. Ensures the cron handler is idempotent and resilient to partial failures.
scheduled-notification-infrastructure
Responsibilities
- Register and manage the Vercel Cron Job endpoint for scheduled reminder evaluation
- Invoke Reminder Service rule evaluation on each cron tick
- Delegate FCM delivery of resolved reminders to the shared Push Notification Service
- Handle partial delivery failures with per-reminder error isolation
- Expose cron job health and last-run metadata for observability
Interfaces
handleCronTick(request)
triggerReminderEvaluation()
deliverReminder(reminder)
recordCronRunMetadata(runAt, processedCount, failedCount)
getCronJobStatus()
retryFailedDelivery(reminderId)
Relationships
Dependencies (2)
Components this component depends on
Dependents (3)
Components that depend on this component