Mediatr and logging

Introduction I’m a huge fan of “Clean” or “Hexagonal” architecture when writing applications. The reasons for this warrant their own blog post which I’ll get round to soon hopefully. But on a recent project for a client I came across a nice way to get transactional logging almost for free within the whole application, and I was delighted with how well it worked out. Mediatr There are a number of libraries available to help with implementing Hexagonal architecture, and in particular Command Dispatchers and Command Processors, Mediatr and Paramore Brighter are two that I know of, although I’m sure there are more out there....

February 15, 2021 · 4 min · Scott Fairclough