REPR (Request-Endpoint-Response) Pattern Will Make Your APIs Clean
23.6 هزار بار بازدید -
9 ماه پیش
-
☄️ Master the Modular Monolith
☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code: https://www.patreon.com/milanjovanovic
Layered architectures, such as Clean architecture, organize the solution across layers. This results in a folder structure grouped by technical concerns. Vertical slice architecture, on the other hand, organizes the code around features or use cases. An exciting approach to structuring APIs around features is using the REPR pattern. It stands for Request-EndPoint-Response. This aligns perfectly with the idea of vertical slices. You can achieve this with the MediatR library, for example. I will show you how to implement the REPR pattern with Controllers, Api.Endpoints, and FastEndpoints.
Check out my courses: https://bit.ly/3PupkOJ
CQRS Pattern With MediatR
https://www.milanjovanovic.tech/blog/cqrs-pattern-with-mediatr
Vertical Slice Architecture
https://www.milanjovanovic.tech/blog/vertical-slice-architecture
Join my weekly .NET newsletter:
https://www.milanjovanovic.tech/
Read my Blog here:
https://www.milanjovanovic.tech/blog
Chapters
https://www.seevid.ir/fa/w/layTLQJ5xYw What is the REPR pattern?
https://www.seevid.ir/fa/w/layTLQJ5xYw REPR pattern using Controllers
https://www.seevid.ir/fa/w/layTLQJ5xYw REPR pattern using Ardalis.ApiEndpoints
https://www.seevid.ir/fa/w/layTLQJ5xYw Remark: Fluent generics in C#
https://www.seevid.ir/fa/w/layTLQJ5xYw REPR pattern using FastEndpoints
9 ماه پیش
در تاریخ 1402/10/15 منتشر شده
است.
23,622
بـار بازدید شده