Queuebase is now open for general use! Read our announcement post.
Queuebase LogoQueuebase

Job Queuing for Next.js

Queuebase is the easiest way to run background jobs in Next.js.

Get started

Jobs for any occasion

From delayed to CRON jobs, Queuebase has you covered

Background Jobs

Simple jobs triggered by an event. Great for things like emailing a user after they sign up!

Delayed Jobs

Need something to run a little bit later? Delayed jobs let you run a job after a certain amount of time.

CRON Jobs

From sending weekly reports or syncing data on a schedule, Queuebase makes adding CRON jobs a breeze.

Top-notch developer experience

Inspired by tools like tRPC and UploadThing, Queuebase leverages the power of TypeScript to provide you with an simple, yet powerful SDK for creating jobs.

Code step 1

1

Define your jobs

The first step is to define your jobs.

In this job, we're saying "Hello" to whatever name we passed in. Then, we export our jobs object to be used in our code.

Code step 2

2

Configure your endpoint

Next, we create a new endpoint in Next.js (using the app router) that exposes a POST endpoint.

The POST request is what Queuebase will call when executing a job.

Code step 3

3

Create your job client

The job client is what you use to interact with your jobs. It's what allows you to queue and run your jobs.

Code step 3

4

Run your job

Finally, we can run our job!

Our job will be queued in Queuebase. When it runs, Queuebase will make a POST request back to our app that includes the name of this job and it's payload. And yes, jobs can be queued from both the client and the server!

At the very end, we should see "Hello, Brock" printed in our terminal!

Everything you need to run your jobs

Background jobs are hard, especially in Next.js. We've done the tricky parts for you, letting you focus on what matters.

Best-in-class DX

Queuebase leverages the power of TypeScript to provide a tRPC-like API for defining your jobs

Own your infrastructure

Your jobs run on your infrastructure, giving you the flexibility to deploy to any platform

Job insights

Track key metrics in your job runs and analyze performance

Application instances

From development to production, we give you everything you need to manage application instances

Automatic retries

Tell us how many times you want a job to try and run, and we'll take care of the rest

Run history

View your job run results at any time and re-run right from the dashboard

The best way to run background jobs in Next.js

The idea to build Queuebase came to me after a lot of frustration trying to do background jobs in my Next.js apps. No solution I tried really felt right to me. They were either overly complex in terms of setup or barely maintained. I setout to build a simple yet powerful solution for managing background jobs in Next.js, one that all developers could use and enjoy.

- Brock Herion
Creator of Queuebase and founder of Orbitech Software Solutions

Start building with Queuebase today
Get started