Goat Review

Understanding the Ambient Context Pattern in .NET: From Theory to Production

Introduction In our previous exploration of execution context in .NET Core, we delved into the intricacies of AsyncLocal and ThreadLocal. Execution Context Management with AsyncLocal and ThreadLocal in .NET CoreIntroduction In modern distributed .NET applications, managing context across execution boundaries is a critical architectural concern. While both AsyncLocal<T&

Execution Context Management with AsyncLocal and ThreadLocal in .NET Core

Introduction In modern distributed .NET applications, managing context across execution boundaries is a critical architectural concern. While both AsyncLocal<T> and ThreadLocal<T> provide mechanisms for maintaining contextual data, their implementations and use cases differ significantly in ways that impact system architecture, performance, and maintainability. This

Don't use MediatR by default on all .NET projects

The .NET ecosystem has witnessed a significant shift in recent years, with MediatR becoming almost synonymous with Clean Architecture implementations. This library, designed to implement the mediator pattern, has found its way into countless tutorials, templates, and starter kits, making it seem like an essential component of modern .NET Core

Object Calisthenics #5: Other points of views

You've seen two implementations of calisthenics objects that differed in many ways, both in the way they applied the rules and in the solutions they proposed to meet the rules discussed in this article: Object Calisthenics #1: Elevating Code Quality with 9 Powerful RulesDiscover how Object Calisthenics can

Simplifying Caching with Aspect-Oriented Programming and Metalama in .NET

1. Introduction: Simplifying Caching with Aspect-Oriented Programming in .NET Aspect-Oriented Programming (AOP) offers elegant solutions for handling cross-cutting concerns in our .NET applications, such as method caching. In a previous article on GoatReview 🐐, we explored using Fody to implement a caching aspect. Although powerful, this tool presents significant challenges. Let&

Goat Review © 2026