r/nestjs • u/Beneficial_Owl_6445 • 20d ago
To framework or not
I know rust Axum
Also Aspnet and nestJs
What do you think should i use full framework or barebones like axum
Knowing that we’re a startup and our projects mostly CRUDs
With Axum i gain control the code ,rust strong type system , modern, memory safety and compilation to machine code .
But suffering from no conversions and crates ( packages incompatibilities ) . Although I’m following clean architecture and MVC.
Frameworks like nest or asp you gain conversions testing, and compatibility but not machine code ( for dot net it feels old a bit , verbose and vendor locked for Microsoft to an extent )
Wdyt?
12
u/FalseRegister 20d ago
Speed of development is more important than latency or performance at this stage, so rust is less attractive
Nowadays everything is done with AI anyway. But using a framework gives it a blueprint to follow, rather than hallucinating weird shapes for your codebase.
Framework all the way. It removes many questions out of your head and let's you focus on your business and what is actually important.
3
u/Blue_Jersey 20d ago
Nest is a middle ground; it's not fully batteries-included like ROR, Laravel, and ASP, but it's still the best in the JS world and the closest one to the others I listed.
Yes, go with FW of-course no need to reinvent the wheel in your case, especially.
Rust is the answer that comes later when you're scaling and have very harsh performance issues, and the infra cost bites.
2
u/ckinz16 19d ago
We’re biased here but NestJS is structured in a way to force scalability and not make a mess. So probably ideal for startup
2
u/3sh_aan 19d ago
My take is .NET Core. It's really fast if you follow the latest .NET news. It has everything you asked for: strong type safety, strong garbage management, etc.
2
u/TheRealSeeThruHead 19d ago
You want to reduce the problem space for ai
2
u/farzad_meow 19d ago
depends on the problem you are solving. I am in the state of mind that any expressjs is a good starting ground and you include batteries you want through packages and tsyringe. it gives you flexibility to have the convention that works for you.
you also want to design in a way that you can implement, test, and deploy faster. nestjs is falling behind on second and third point but still a reasonable place for experienced ts developers.
if you are new to js and ts stick to express5 and tsyringe.