Annie  Emard

Annie Emard


Hangfire + MediatR = Message Dispatcher

You can use two popular libraries in MediatR and Hangfire to create a pretty cool solution to move messaging out-of-process into a separate worker. Here’s how you can take these two libraries and use them together.

πŸ”” Subscribe:

πŸ’₯ Join this channel to get access to source code, demos, and slides!

Why use MediatR:


πŸ“ Blog:

πŸ“š Book Recommendations

Domain-Driven Design

Patterns of Enterprise Application Architecture

Refactoring: Improving the Design of Existing Code

Monolith to Microservices: Evolutionary Patterns to Transform Your Monolith

RESTful Web Clients: Enabling Reuse Through Hypermedia

0:00 Intro
0:38 MediatR Example
1:25 Configure Hangfire
2:27 MediatR Wrapper/Bridge
3:20 MediatR Extension Method
4:37 Hangfire Serialization
8:00 Hangfire Extensibility
9:53 Summary


#dotnet #messaging #softwarearchitecture

#hangfire #mediatr #dotnet #messaging #softwarearchitecture

Hangfire + MediatR = Message Dispatcher