Improvements with minimal APIs
Minimal APIs were designed not only to improve the performance of APIs but also for better code convenience and similarity to other languages to bring developers from other platforms closer. Performance has increased both from the point of view of the .NET framework, as each version has incredible improvements, as well as from the point of view of the simplification of the application pipeline. Let’s see in detail what has not been ported and what improves the performance of this framework.
The minimal APIs execution pipeline omits the following features, which makes the framework lighter:
- Filters, such as
IAsyncAuthorizationFilter
,IAsyncActionFilter
,IAsyncExceptionFilter
,IAsyncResultFilter
, andIasyncResourceFilter
- Model binding
- Binding for forms, such as
IFormFile
- Built-in validation
- Formatters
- Content negotiations
- Some middleware
- View rendering
- JsonPatch
- OData
- API versioning
Performance...