By zasghar and Anish Singh Walia

Modern web applications need background jobs to maintain smooth user experiences—sending welcome emails, running reports, processing files, and triggering alerts. Traditionally, this required setting up job queues and worker servers, adding infrastructure complexity and monitoring overhead.
Inngest eliminates this complexity by allowing you to define background functions as event-driven jobs. Your app emits an event (like user/created), and Inngest automatically invokes the right function reliably at scale without requiring you to manage servers or queues.
DigitalOcean App Platform provides streamlined deployment from GitHub repositories with automatic building, deploying, and scaling. Using App Platform’s SaaS Add-Ons feature, you can integrate Inngest with your application in just a few clicks.
This tutorial will guide you through deploying your app on App Platform, adding Inngest as a SaaS Add-On, configuring environment variables, syncing your app with Inngest, and testing the integration. By the end, your application will handle background jobs without additional infrastructure management.
user/created) and Inngest automatically invokes the appropriate functionsInngest is an event-driven, durable workflow engine that lets you run reliable background jobs and orchestrate workflows on any platform—including serverless environments. Instead of maintaining servers, job queues, or worker processes, you simply define functions in your application that respond to specific events.
When your application emits an event (for example, user/created), Inngest detects it and invokes the corresponding function automatically and reliably, handling scaling, retries, and failure recovery for you. This event-driven approach is ideal for building resilient, maintainable systems where background jobs and workflows are essential.
Real-life Examples & Use Cases:
user/created), automatically trigger an email welcome sequence.media/uploaded), kick off background processing without blocking the main app.order/placed or payment/received to manage inventory, notify fulfillment providers, or send receipts.DigitalOcean App Platform streamlines deployment by allowing you to launch applications directly from GitHub repositories. It automatically handles build, deploy, and scaling steps. By integrating Inngest using App Platform’s SaaS Add-Ons feature, you can connect your background job workflows to your application with just a few clicks—unlocking powerful event-driven capabilities with minimal setup.
Before starting, make sure you have:
If your app is not yet on App Platform, you’ll need to deploy it. DigitalOcean App Platform makes deployment straightforward by automatically detecting your framework and handling the build process. For more detailed deployment guidance, see our App Platform deployment guide.
DigitalOcean will deploy your app and give you a live URL, such as:
https://<your-app-name>.ondigitalocean.app
This URL is what users will interact with and what Inngest will connect to later.
Now that your app is running, the next step is to integrate Inngest as a SaaS Add-On. This process automatically generates the necessary credentials for secure communication between your app and Inngest.

DigitalOcean will now:
INNGEST_EVENT_KEY and INNGEST_SIGNING_KEY):
Your app needs the keys generated in the previous step to securely communicate with Inngest. These environment variables enable authentication and ensure that only your application can trigger Inngest functions.
INNGEST_EVENT_KEY → copy from the Inngest SaaS Add-On.INNGEST_SIGNING_KEY → copy from the Inngest SaaS Add-On.Your repository should contain the logic to integrate with Inngest. This involves creating an API endpoint that Inngest can communicate with and defining functions that respond to specific events. The two major components that handle this integration are:
Located at app/api/inngest/route.js:
import { serve } from "inngest/next";
import { inngest } from "../../../src/inngest/client";
import * as fns from "../../../src/inngest/functions";
export const { GET, POST, PUT } = serve({
client: inngest,
functions: Object.values(fns),
});
This route:
For more information about managing environment variables in App Platform, see our documentation.
Functions live in src/inngest/functions/.
Example: userCreated.js:
import { inngest } from "../client";
export const userCreated = inngest.createFunction(
{ id: "user-created" },
{ event: "user/created" },
async ({ event }) => {
console.log("User created event:", event);
return { name: event.data.name };
}
);
Example: welcomeEmail.js:
import { inngest } from "../client";
export const welcomeEmail = inngest.createFunction(
{ id: "welcome-email" },
{ event: "user/created" },
async ({ event }) => {
console.log("Sending welcome email to", event.data.email);
return { email: event.data.email };
}
);
Now, let’s confirm the setup works by triggering a test event. This will verify that your application can successfully communicate with Inngest and that your functions are executing properly.


If both the event and the function run successfully, the integration is complete.
When setting up Inngest with DigitalOcean App Platform, you may encounter several common issues. Here’s how to resolve them:
/api/inngest is deployed and accessibleuser/created eventsApp Platform is a Platform-as-a-Service (PaaS) offering that allows developers to publish code directly to DigitalOcean servers without worrying about the underlying infrastructure. Functions are blocks of code that run on demand without the need to manage any infrastructure. Inngest works with both App Platform and Functions, but this tutorial focuses on App Platform integration.
DigitalOcean App Platform offers a free tier that’s ideal for trying out the platform, hosting personal websites, portfolios, or small projects. However, for production applications with Inngest integration, you’ll likely need a paid plan that includes access to SaaS Add-Ons and environment variables.
Inngest is an event-driven durable workflow engine that enables you to run reliable code on any platform, including serverless. With any Inngest SDK, you write functions in your codebase and make them available to Inngest using an HTTP endpoint. It’s particularly useful for background job processing, workflow orchestration, and event-driven architecture.
You can refer to Inngest official documentation for more information on how to use Inngest.
To use Inngest, you:
The three main types of Inngest workflows are:
Inngest supports all three types of workflows, making it flexible for various use cases.
Yes, DigitalOcean App Platform supports background jobs through several methods:
This tutorial focuses on using Inngest as a SaaS Add-On for sophisticated background job processing.
You’ve successfully deployed your app on DigitalOcean App Platform, added Inngest as a SaaS Add-On, configured secure environment variables, synced functions and created an /api/inngest endpoint, and triggered a test event to verify execution.
Your application can now handle background jobs without managing servers or queues. As your project grows, simply add new events and functions—Inngest will scale automatically.
Ready to explore more advanced background job processing and App Platform features? Check out these related tutorials:
For more background job processing solutions, explore our App Platform documentation or visit the DigitalOcean Community for additional tutorials and support.
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
Solution Architect
I help Businesses scale with AI x SEO x (authentic) Content that revives traffic and keeps leads flowing | 3,000,000+ Average monthly readers on Medium | Sr Technical Writer @ DigitalOcean | Ex-Cloud Consultant @ AMEX | Ex-Site Reliability Engineer(DevOps)@Nutanix
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.