Hacker News new | ask | show | jobs
by sandreas 324 days ago
There's also Fast Endpoints[1], which Kind of the best of both worlds, minimal-API and REPR.

1: https://fast-endpoints.com/

2 comments

> There's also Fast Endpoints[1]

thank for the pointer !

The syntax seems cool and comprehensive, i like it.

I made some test and like its name, it is very fast : performances are closed to SimpleW, just a little bellow. But its memory footprint is the half, so i'm impressed. I will check the code, sure there are interesting things into.

Came to mention the same... really like FastEndpoints myself a lot.
Same although Minimal APIs are slowly getting there. In dotnet 10 we will finally get validation.
Fair enough... I'd probably stick to Minimal APIs if there were fewer than 5-10 routes in a smaller service. But, with the startup and runtime overhead of .Net, I'm inclined to prefer more monolithic approaches for most general use. Just without weighing it down with a lot of heavy handed enterprisey abstractions.

Edit: Of course, Aspire definitely looks interesting for more complex needs.

AFAIK FastEndpoints uses Minimal APIs... so wouldn't the overhead be similar?
They do, and it's not so much about the overhead in terms of performance so much as the cognitive load of spreading out what would otherwise be a smaller/simpler codebase.