Blog Logo

Message Routing in Dotnet 6

In this post, Joshua Steward builds on his previous work on background message processing in Dotnet 6 and introduces a new concept called MessageRouter. The post discusses how to route a single InternalMessage to the intended audience by transforming and routing it to the corresponding BackgroundMessenger. The solution involves several interrelated components such as the InternalMessage, Types, HubClient, and MessageFactory. The post also includes code examples and explanations of these components. The post aims to solve a challenge of sending messages whenever an entity is created, updated, or deleted without worrying about the messaging aspects of the event. The post is a great resource for dotnet developers who want to learn about message routing and its implementation in dotnet 6.