Menu

Stop Losing Background Jobs: Meet Masterly.NightShift for .NET
πŸ“°

Stop Losing Background Jobs: Meet Masterly.NightShift for .NET

DEV Community: dotnetΒ·Ahmad Al-FreihatΒ·19 days ago
#ez5zBMvG
#devtodotnet#devto#dev#nightshift#background
Long article (1370 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Ever found yourself debugging a background task that mysteriously disappeared after an application restart? Or trying to coordinate multiple dependent jobs while dealing with retries, duplicate execution, and concurrency issues?

There's a better way.

Introducing Masterly.NightShift πŸŒ™

Masterly.NightShift is an open-source background job processing engine for .NET 8+, built on a modernized fork of Hangfire 1.8.25.

It brings durable execution, workflow orchestration, resilience, and observability together under a familiar API.

dotnet add package Masterly.NightShift

Enter fullscreen mode

Exit fullscreen mode

The Problem

Background processing often starts with something like this:

// In your controller [ HttpPost ( "register" ) ] public IActionResult Register ( RegisterRequest request ) { var user = CreateUser ( request ) ;

// Fire and forget? _ = Task . Run ( ( ) => SendWelcomeEmail ( user . Id ) ) ;

return Ok ( ) ; }

Enter fullscreen mode

Exit fullscreen mode

Looks simple.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.