Mediator is one of the 23 design patterns stated inside the GOF Design Patterns book. All it does is encapsulates communication between objects, hence no coupling. It falls into the object behavior patterns category. MassTransit has a mediator implementation. Let's talk about it.
Working with HttpClient is kind of low-level stuff. Refit eases that problem for us. It creates an abstraction over HttpClient and allows us to work with an interface representing REST endpoints
Application state is subjected to change. A reducer is a pure function that takes the current state and an action been dispatched upon it. Depending on the action type it produces a new state and returns it. States are immutable.
Subscribe to Fiyaz Hasan
Subscribe today and get access to a private newsletter and new content every week!