Skip to content

Home

NexJob is a background job library for .NET 8 and .NET 10, built for jobs that must run, fail safely and leave a trace: retries, dead-letter handling, deadlines and a built-in dashboard, on five storage providers (PostgreSQL, SQL Server, Redis, MongoDB and in-memory) with no paid tier. Enqueue is fast and light on memory (the numbers).

dotnet add package NexJob

Start here

  • Quick Start

    Install NexJob and run your first job in about five minutes.

  • Live Playground

    Try the dashboard in your browser: trigger burst jobs, outages and retries in real time.

  • Introduction

    Why NexJob, every package, and every feature in one place.

Understand

  • Mental Model

    Storage-first design, the job state machine and crash recovery.

  • Delivery Guarantees

    What each failure costs a job: crashes, shutdown, throttling, pauses and deadlines.

  • Retries and dead letter

    Exponential backoff, and what happens to a job when every attempt is spent.

  • Scheduling

    Enqueue, delay, set deadlines and chain job continuations.

  • Storage Providers

    Choose between PostgreSQL, SQL Server, Redis, MongoDB and in-memory.

  • How NexJob is tested

    How NexJob's own test suite works: real databases, killed processes and upgrades, and what is not covered.

  • Writing Tests

    Test your own jobs: unit tests with fakes and integration tests on InMemory storage.

Build

  • Recurring jobs

    Cron schedules from code or appsettings.json.

  • Queues

    Route jobs, choose which queues a host polls, and pause or resume them.

  • Throttling

    Cap concurrent executions per resource, per process or cluster-wide.

  • Idempotency

    Make a job safe to run more than once.

  • Triggers

    Enqueue jobs from Kafka, RabbitMQ, SQS, Service Bus, Pub/Sub and Salesforce.

  • Multi-Service

    Several services on one database without stepping on each other.

Operate

  • Dashboard

    Real-time cluster visibility with no external dependencies.

  • Alerts

    Know when a job fails for good, with a ready Slack recipe.

  • Circuit Breaker

    Pause a queue automatically when a dependency is down, and ramp back up safely.

  • Runtime Control

    Pause, resume, requeue and delete from code.

  • OpenTelemetry

    Traces and metrics for every execution.

  • Production checklist

    What to verify before you go live.

Solve a problem

  • Troubleshooting

    Jobs not picked up, stuck in Processing, handlers not called.

  • FAQ

    Restarts, duplicates, retention, storage and Hangfire comparison.

  • Migration

    Breaking changes and what to update, version by version.