Back to Docs
Inngest Integration

Inngest + Meridian

Offload long-running LLM analysis to durable serverless functions with automatic retries, exponential backoff, and step-level state persistence.

Durable Execution

Functions survive process restarts. Inngest replays steps from the last successful checkpoint.

Automatic Retries

Transient failures trigger exponential backoff with jitter. No manual retry logic in your handlers.

Step Functions

Compose multi-step pipelines — fetch, analyze, summarize — each with independent error boundaries.

Async LLM Analysis

Trigger an Inngest function that calls an LLM, handles rate limits, and retries on failure.

Handler Pattern

import { inngest } from "@/inngest/client";

export const llmAnalyze = inngest.createFunction(
  { id: "llm-analyze", retries: 3 },
  { event: "llm/analyze" },
  async ({ event, step }) => {
    const data = await step.run("fetch-telemetry", async () => {
      return fetchTelemetry(event.data.prompt);
    });

    const analysis = await step.run("call-llm", async () => {
      return callLLM(data);
    });

    return { analysis };
  }
);