Hey Indie Hackers,
If you've ever deployed projects on Vercel, you know how amazing their serverless infrastructure is—blazing fast deployments, automatic scaling, and a developer-friendly experience. But there's one thing Vercel doesn't natively support: queueing jobs.
If you're dealing with tasks that require background processing—like sending emails, generating reports, or processing large datasets—you're left scrambling for solutions outside the Vercel ecosystem. That’s where Next.js Queue comes in.
What is Next.js Queue?
Next.js Queue is a simple and effective solution to introduce queueing functionality to your Next.js applications deployed on Vercel. It allows you to:
Send requests to queue jobs and process them asynchronously.
Forward jobs to your Vercel functions, enabling background processing within your existing serverless environment.
Avoid timeouts and performance issues by decoupling long-running tasks from user-facing requests.
Why I Built This
I found myself facing this exact problem while building SaaS products. Vercel's serverless functions are great, but running anything that takes longer than a few seconds becomes a bottleneck. I wanted a solution that integrates seamlessly into the Next.js/Vercel workflow without needing additional infrastructure like AWS Lambda queues or third-party services.
How It Works
Push Jobs to the Queue: Use the provided API to enqueue tasks.
Background Processing: Your Vercel function picks up the queued jobs.
Retry Mechanisms & Logging: Built-in retries and logging help track job execution.
The goal is to make it as developer-friendly as possible—no additional setup beyond what you're already doing with Next.js.
Looking for Feedback!
I'm currently refining the idea and would love your feedback:
Would you find this useful for your Next.js projects?
What are the pain points you face with long-running tasks on Vercel?
Any must-have features you'd expect from a queueing solution?
I’d love to hear your thoughts, suggestions, or if you'd be interested in early access. Let’s make serverless even better!
Drop a comment below or DM me.
Thanks