Explore how to publish MediatR notifications in parallel, starting with the default sequential publishing strategy. Learn how to implement parallel publishing using newer MediatR features, create test notifications and handlers, and configure dependency injection. Understand the pros and cons of parallel publishing, including performance benefits and potential pitfalls like ThreadPool starvation and race conditions.

5m read timeFrom code-maze.com
Post cover image
Table of contents
How MediatR Publishing Works by DefaultHow to Implement Parallel Publishing With MediatRTesting Parallel PublishingWhat Are the Pros and Cons?Conclusion

Sort: