4 ms·
What make rust better than any language when the bottleneck is the network or the database?
by mococa 2y ago
What make rust better than any language when the bottleneck is the network or the database?
- yakshaving_jgt 2y agoThe bottleneck is mostly developer hours.
- drpossum 2y agoNot every application or even web application bottlenecks at the network or database level.
- Capricorn2481 2y agoDoesn't really answer the question. Most webapps are this way and people are still surprisingly unaware of this.
- drpossum 2y agoIt is a refutation of the premise which invalidates this particular question as it was posed.
- slowmovintarget 2y ago"Not every" is not the same as "none" and the discussion is about the majority, so I think your refutation is only of the absolute case and not of the original premise. Rust would be overkill for most web applications.
- sn9 2y agoPerformance is one thing but there's also maintenance costs and the cost of servers. Also potential for future scaling.
- drpossum 2y agoLet me put it this way: If I responded to you with "Why should I bother listening to you because you constantly make bad faith arguments" you wouldn't treat the question seriously because (I assume) you do not constantly make bad faith arguments. It's not that there isn't an answer, it's that there is a problem with the framing of the question itself that should be addressed by the person asking it first.
- dajonker 2y agoFor me, the type system and the performance without having to do any optimization. The complete lack of runtime errors when your code compiles (*if you choose to write code that way)
- tcfhgj 2y agoThe bottle neck depends on the amount of CPU resources you throw at something
- wtetzner 2y agoIf you write a network-bottlenecked app in a slow language, then the slow execution time is piled on top of the network latency, making things even worse. I also think people underestimate how much impact their slow code has even in networked applications.
- zanellato19 2y agoSince Rust can be as fast as the database, you can do some stuff on the application code and be fast where you can't with some interpreted languages. That means that the database is not as overloaded as usual.