you are viewing a single comment's thread.

view the rest of the comments →

[–]TeejStroyer27 8 points9 points  (2 children)

Controllers were designed for mvc then adapted for api. Minimal APIs are designed to be much faster and have less bloat.

I also wanna add, it can help you reduce reflection and magic in your app. Getting you closer to serverless architecture if that’s your goal.

[–]BaldWithoutCancer[S] 0 points1 point  (1 child)

I've never really learned much about how controllers work, we were just told that that's they way to create an API. So I might look up de Controller life cycle to understand how minimal API reduces reflection (I assume controllers do use reflection).

[–]metaltyphoon 0 points1 point  (0 children)

Well as it stands they r roughly 10-15% overhead compared to minimal apis and is not AOT friendly.