Interesting use cases for middleware that can simplify your architecture. — Middleware is one of the fundamental components of ASP.NET Core applications that can be used to implement various functionality. For example, middleware can be used to implement authorization, convert exceptions to responses, measure request execution time, decompress requests, compress responses, and more. …