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¶
-
Install NexJob and run your first job in about five minutes.
-
Try the dashboard in your browser: trigger burst jobs, outages and retries in real time.
-
Why NexJob, every package, and every feature in one place.
Understand¶
-
Storage-first design, the job state machine and crash recovery.
-
What each failure costs a job: crashes, shutdown, throttling, pauses and deadlines.
-
Exponential backoff, and what happens to a job when every attempt is spent.
-
Enqueue, delay, set deadlines and chain job continuations.
-
Choose between PostgreSQL, SQL Server, Redis, MongoDB and in-memory.
-
How NexJob's own test suite works: real databases, killed processes and upgrades, and what is not covered.
-
Test your own jobs: unit tests with fakes and integration tests on InMemory storage.
Build¶
-
Cron schedules from code or
appsettings.json. -
Route jobs, choose which queues a host polls, and pause or resume them.
-
Cap concurrent executions per resource, per process or cluster-wide.
-
Make a job safe to run more than once.
-
Enqueue jobs from Kafka, RabbitMQ, SQS, Service Bus, Pub/Sub and Salesforce.
-
Several services on one database without stepping on each other.
Operate¶
-
Real-time cluster visibility with no external dependencies.
-
Know when a job fails for good, with a ready Slack recipe.
-
Pause a queue automatically when a dependency is down, and ramp back up safely.
-
Pause, resume, requeue and delete from code.
-
Traces and metrics for every execution.
-
What to verify before you go live.
Solve a problem¶
-
Jobs not picked up, stuck in Processing, handlers not called.
-
Restarts, duplicates, retention, storage and Hangfire comparison.
-
Breaking changes and what to update, version by version.
