Quick start
tsqueue is a TypeScript-first task queue that lets you to schedule and monitor background jobs. It works great alongside stateless platform like Vercel, enabling you to delay one-off requests and create recurring cron-jobs that run on your serverless functions.
Unlike other task queues, tsqueue is designed for end-to-end type safety. Under the hood, tsqueue jobs are defined as tRPC procedures. If you're already using tRPC, the tsqueue router should be placed in its own endpoint.
Using the hosted service allows you offload the burden of managing one of the most essential piece of your architecture. But if you would like to self-host, tsqueue is 100% open source.
Scheduled one-off jobs
- Event reminder emails/text messages
- Send welcome email to new users after 24 hours
Recurring cron jobs
- Delete old data
- Run a SQL query every day
- Send a Slack message every hour