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.

Getting Started with Axum – Rust's Most Popular Web Framework

56 pointsby dohmanover 1 year ago

5 comments

jbandela1over 1 year ago
&gt; Deployment with Rust backend programs in general can be less than ideal due to having to use Dockerfiles,<p>Actually, in my experience, Rust is one of the best languages for ease of deployment (for much the same reason as Go). Rust&#x2F;Cargo produces self-contained statically linked binaries. Rust&#x2F;Cargo also has a real nice cross-compiling story. Often my deployment will be to build the binary and then basically scp the binary and supporting files (such as html&#x2F;config) to the target. You don&#x27;t really need Docker.
评论 #38546012 未加载
评论 #38554761 未加载
评论 #38545952 未加载
Shish2kover 1 year ago
Is it safe to expose to the internet[0]? I’m still looking for a Rust web framework that supports eg timeouts for idle connections so that it doesn’t crash and burn when it runs out of sockets after a few hours of serving production traffic (let alone being able to survive an intentional slowloris attack) :(<p>[0] I’m ideally hoping for a framework which ticks the same boxes that Go’s `net&#x2F;http` was ticking in 2016: <a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;exposing-go-on-the-internet&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;exposing-go-on-the-internet&#x2F;</a>
评论 #38546832 未加载
Wonnk13over 1 year ago
This isn&#x27;t trolling, it&#x27;s my genuine ignorance- I thought Actix was the goto web framework for Rust? I don&#x27;t do a whole lot of Rust and when I do it isn&#x27;t http router type work so I&#x27;m out of the loop here.
评论 #38546135 未加载
评论 #38546148 未加载
评论 #38546326 未加载
评论 #38546778 未加载
评论 #38560057 未加载
评论 #38546187 未加载
spacedimpover 1 year ago
I love Axum as well that I also wrote a blog post teaching how to link it up with PostgreSQL and Tokio.<p><a href="https:&#x2F;&#x2F;spacedimp.com&#x2F;blog&#x2F;using-rust-axum-postgresql-and-tokio-to-build-a-blog&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;spacedimp.com&#x2F;blog&#x2F;using-rust-axum-postgresql-and-to...</a>
boredumbover 1 year ago
I&#x27;ve been using Tide with great success lately. Also - for my own projects I haven&#x27;t used docker lately and just dump the binary with it&#x27;s configs to the debian box with a systemd configured and so far it&#x27;s been painless, ymmv.
评论 #38547534 未加载