TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to get started with Rust for Web Dev

53 pointsby mbvistiover 2 years ago

3 comments

tejinderssover 2 years ago
A genuine question, why would someone choose Rust for web development instead of Typescript/nodejs? Most of the times the database is the bottleneck for web applications and nodejs will provide good enough performance for that. Also, typescript provides a good type system like Rust without the tedious need to manage memory with borrow checker.
评论 #32898558 未加载
评论 #32897261 未加载
评论 #32897450 未加载
评论 #32897425 未加载
echelonover 2 years ago
Actix is really great!<p>You can inject web::Data&lt;T&gt; into your handlers for any dependency you&#x27;d like : database pools, config objects, in-memory caches that you populate from another thread.<p>Serde makes request and response marshalling a breeze.<p>The websocket support is great too.<p>We&#x27;re using it for a couple of high traffic websites now.<p>The ecosystem needs better SQL tools. Diesel is too ORMy, and SQLx has rough edges around connection pooling. But these aren&#x27;t show stoppers, and it&#x27;ll get better.
评论 #32896774 未加载
philliphaydonover 2 years ago
I&#x27;ve been playing around with <a href="https:&#x2F;&#x2F;rocket.rs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;rocket.rs&#x2F;</a> and its quite nice. Can even run on AWS Lambda&#x27;s.