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.

Feature: Scenario-Based Reminders & Automated Follow-Up Alerts

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

Related Data Entities (1)

Data entities managed by this component