Defer's Epoque Scheduler powers product integrations features as well as advanced scheduling features such as user workflows, configurable reminders and notifications.
From simple direct execution to recurring ones. Schedule all types of work without compromise on precision or performance.
Our Epoque Schedule provides precise pick-up and fixed concurrency, at any scale.
Get direct access to our Epoque Scheduler throught its public API. Retrieve executions by custom filters, reschedule or cancel some; all from your application.
1
import
express
from
'express'
2
import
{
delay
}
from
'@defer/client'
3
import
sendTodoReminder
from
'./defer/sendTodoReminder'
4
5
const
app
=
express
(
)
6
7
interface
Todo
{
8
userId
:
string
9
title
:
string
10
assigneeId
?
:
string
11
remind
?
:
Date
12
}
13
14
app
.
post
(
'/todos'
,
async
function
(
req
,
res
)
{
15
const
todoRecord
:
Todo
=
/* ... */
16
17
// ...do some validation...
18
19
const
todo
=
await
prisma
.
todo
.
create
(
{
20
data
:
todoRecord
,
21
}
)
22
23
const
scheduledTodoReminder
=
delay
(
todo
,
todo
.
remind
)
24
await
scheduledTodoReminder
(
todo
)
25
26
res
.
send
(
{
todo
}
)
27
}
)
28
29
app
.
listen
(
3000
)
Leverage the Epoque Scheduler to build reminders without the associated scheduling hassle.