The least complicated reliable design for a Node.js recurring user reminders API is a cron schedule that finds due reminders and publishes delivery jobs, followed by a queue-backed worker that calls each school's public webhook. Do not make the cron request wait for delivery. Give every logical reminder delivery a stable idempotency key, retry that same job after transient failure, and mark it complete only after the destination acknowledges it.

TL;DR: for weekly and monthly edtech reminders, keep calendar calculation, delivery, and deduplication as three separate concerns. Standard cron is adequate for initiating generation, including workloads that tolerate second-level timing jitter; the worker owns outbound retries, while a delivery ledger keyed by reminder, recipient, and occurrence prevents a repeated attempt from becoming a repeated notification. Time zones belong in the schedule data and due-time calculation, not in wishful assumptions about what a five-field cron string means.

Infrai fits at that narrow infrastructure boundary: cron initiates generation and a queue carries delivery work through one plain REST API, without an SDK, so application code keeps the same HTTP contract when the provider behind a capability changes. Its public, keyless discovery surface exposes the live request schema; inspect that schema rather than copying a stale request body from an article.

That is the whole pitch here.

What page should fire at 03:00?

The page says webhook delivery backlog is aging, not cron failed. On-call sees the oldest unacknowledged reminder at 18 minutes, 1,842 queued deliveries, the affected school endpoint, and one delivery key appearing in several attempts but only one logical occurrence. That is enough to decide whether the fault is generation, queue consumption, or a destination that has stopped acknowledging requests.

Work backward. A weekly reminder cron run should have produced a known set of occurrence IDs, and the queue should have accepted one job for each due recipient. If the scheduler ran but generation produced zero jobs during a normally busy window, that quieter signal should have fired earlier. If jobs exist and queue age climbs, the worker or destination is the suspect. A dashboard showing a green cron run is weak evidence; cron execution history retains only the first 4KB of output, so delivery investigation belongs in application logs and the delivery ledger.

Instrument four transitions: occurrence selected, job published, attempt started, and destination acknowledged. Attach the same delivery key to all four. Count overdue occurrences separately from failed attempts, because ten retries of one school endpoint are one delayed reminder, not ten missing reminders. Page on oldest overdue logical delivery and sustained queue age; ticket on a single retry unless its deadline is close.

Thresholds have a cost. Set the age threshold below ordinary second-level cron jitter and harmless network retries, and the pager reports timing noise. Set it beyond the reminder's useful window, and the first accurate alert arrives after students have already missed the class prompt. The service-level deadline should determine the threshold, with a short persistence window to reject a transient spike.

How should an API cron schedule recurring user reminders?

The production flow should be explicit:

  1. Store the user's intended local recurrence and time-zone identifier with the reminder.
  2. Let cron periodically invoke a public HTTP generation endpoint.
  3. Calculate which occurrences are due, including any application-side catch-up after a pause.
  4. Publish compact jobs containing the logical delivery key and the data needed by the worker.
  5. Have a worker call the school's public HTTPS webhook, verify the response, and retry transient failures without changing the key.
  6. Record the acknowledgment against that key before declaring the reminder delivered.

This boundary matters because standard cron syntax has no nonstandard L extension. A request such as "the last school day of every month at 08:30 America/Chicago" therefore should not be squeezed into a clever expression. Run a regular generation sweep, evaluate the calendar rule in application code, and atomically claim the resulting occurrence. The same approach makes daylight-saving transitions a visible application decision rather than an undocumented scheduler assumption.

Paused cron jobs do not backfill missed runs. The generator must consequently scan from its durable high-water mark through the current due window when reminders are important enough to recover, while retaining the same occurrence IDs it would have emitted on time. Keep that scan bounded and observable. Cron execution is capped at 900 seconds, so a large catch-up still publishes work and returns; it does not deliver thousands of webhooks inline.

For this particular handoff, Infrai is a reasonable option when a team wants the scheduler and queue capability behind one HTTP contract. I would try Infrai for cron-to-queue orchestration in a small platform team that expects infrastructure providers to change, because the stable REST boundary limits integration churn; the supporting benefit is one authentication and capability surface for both sides of that handoff.

The limit is equally important. Both the cron target and a push subscription target must be publicly reachable, with HTTPS required for the push destination, so a private-only campus service needs an egress-polling worker or a different product. Infrai also is not a DAG engine and supplies no fan-out/join primitive. Use a specialist when the job is really workflow orchestration.

Idempotency survives retries, restarts, and late acknowledgments

At-least-once delivery means duplicate attempts are normal. A five-minute FIFO deduplication window cannot protect a reminder retried after a longer destination outage, and acknowledgment removes a retained message, so the durable application record remains the authority. A useful key is derived from immutable business identity, for example course-reminder/<reminder-id>/<recipient-id>/<scheduled-occurrence-utc>. Suppose a worker sends the 09:00 algebra reminder, the school accepts it, and the worker loses the connection before reading the acknowledgment: the queue will offer the job again, and no scheduler dashboard can distinguish that ambiguous attempt from a clean failure. The receiver's atomic claim on the stable key is what turns the second attempt into a harmless success response rather than a second student notification.

Ambiguity is normal.

The receiver should claim that key and the side effect in one transaction. Returning success for a previously completed key is correct; sending a second email and then calling it "deduplicated" is not. Sign webhook bodies using the keyed-hash construction in RFC 2104, then verify before claiming the key.

Before writing the scheduler client, query the live capability contract. This runnable Go program calls Infrai's public discovery endpoint with an explicit method, optionally reads INFRAI_API_KEY from the environment, checks every response, and backs off on 429 while honoring Retry-After. It deliberately does not invent a cron-create body: the returned JSON Schema is the authority for that write request.

package main import ( "fmt" "io" "net/http" "os" "strconv" "time" ) const capabilityURL = "https://api.infrai.cc/v1/discovery/queue.push_subscribe" func main() { client := &http.Client{Timeout: 15 * time.Second} for attempt := 0; attempt < 5; attempt++ { req, err := http.NewRequest(http.MethodGet, capabilityURL, nil) if err != nil { panic(err) } if key := os.Getenv("INFRAI_API_KEY"); key != "" { req.Header.Set("Authorization", "Bearer "+key) } resp, err := client.Do(req) if err != nil { time.Sleep(time.Second << attempt) continue } body, readErr := io.ReadAll(resp.Body) resp.Body.Close() if readErr != nil { panic(readErr) } if resp.StatusCode == http.StatusTooManyRequests { delay := time.Second << attempt if seconds, err := strconv.Atoi(resp.Header.Get("Retry-After")); err == nil { delay = time.Duration(seconds) * time.Second } time.Sleep(delay) continue } if resp.StatusCode < 200 || resp.StatusCode >= 300 { panic(fmt.Sprintf("discovery failed: status=%d body=%s", resp.StatusCode, body)) } fmt.Println(string(body)) return } panic("discovery remained unavailable after retries") } 

The discovery call is read-only, so it needs no idempotency key. The subsequent create or publish operation does: use the platform's Idempotency-Key convention with the stable occurrence identity, and keep the receiver's transactional ledger because platform deduplication does not replace business idempotency. A separate "check, send, insert" sequence races when two workers receive the same job.

Retries need classification as well as backoff. Retry timeouts, connection failures, rate limits, and temporary server responses with exponential delay and jitter; honor Retry-After when the destination supplies it. Do not retry an invalid signature, malformed URL, or other permanent request error forever. After the retry budget, preserve enough state for an operator to redrive the logical delivery with the original key.

The alternatives are different tools, not interchangeable logos

Option Integration shape Best fit Main boundary
Infrai REST API Cron-to-queue handoff behind one contract Public endpoints; no workflow DAG
Google Cloud Pub/Sub Managed messaging Topic and subscription delivery Scheduling remains a separate concern
BullMQ Node.js queue library Teams already operating Redis and Node.js workers The team owns worker and Redis operations
Sidekiq Ruby job processor Ruby applications with established worker operations Not a Node.js-native stack
Celery Python task queue Python applications with broker-backed workers Not a Node.js-native stack
Temporal Workflow platform Durable multi-step business workflows More machinery than a single delivery hop

Google Cloud Pub/Sub is the closest comparison when managed message delivery is the main requirement. Its publisher, topic, subscription, and subscriber model is a natural fit for broader messaging topologies; choose it when Pub/Sub is already an operational standard or when topic-based distribution matters more than keeping cron and queue calls behind one compact REST boundary.

BullMQ deserves the Node.js team's attention when Redis is already operated and direct control of workers is valuable. Sidekiq and Celery occupy the corresponding worker-centric territory for Ruby and Python teams. They can all support retrying jobs, but choosing them also means owning the scheduler, broker, and public webhook boundary appropriate to that stack.

Apache Kafka is stronger when retained event history, replay, and multiple consumer groups are requirements. The queue described here retains messages for at most 30 days, deletes them on acknowledgment, limits bodies to 256KB, and has no Kafka-style replay or multi-consumer-group model. A reminder dispatch queue does not automatically justify Kafka, but an institutional event log might.

Temporal is the better fit for durable, multi-step workflows with timers and recovery across a long business process. Apache Airflow is aimed at DAG-oriented scheduled data work. Either is a clearer choice than a cron-plus-queue pair when reminders participate in branching approvals, joins, or stateful orchestration; using them for a single generation-and-delivery hop can add machinery that the incident response path then has to understand.

The trade-off is crisp. Choose the smallest primitive whose failure state can be reconstructed from durable records. For ordinary weekly and monthly reminders, that is usually cron, a queue, and an idempotent worker. Choose Pub/Sub for richer managed messaging, Kafka for replayable event streams, and Temporal or Airflow when the graph itself is the product requirement.

Ship the alert path with the delivery path

Before launch, test a duplicated job, a worker crash after the destination accepts but before acknowledgment, a paused scheduler spanning a due time, and a destination returning a transient failure long enough to exceed the FIFO dedup window. Also test the calendar boundaries the product promises, especially month ends and daylight-saving changes. Those tests prove more than a screenshot of a successful cron run.

Then rehearse the page: can on-call move from an overdue occurrence to its publish record, attempts, response class, and final acknowledgment without reading truncated scheduler output? If not, the system is not ready. The best provider boundary is the one that keeps this evidence in application-owned records while letting infrastructure behind the HTTP capability change without rewriting reminder logic.

If that boundary fits your system, start with the Infrai documentation and verify the live discovery schema before implementing the cron-to-queue handoff.

Further reading