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.

Actix: a small, pragmatic, and fast Rust web framework

399 pointsby fafhrd91almost 7 years ago

24 comments

the_mitsuhikoalmost 7 years ago
We use it at Sentry for one of our services and the experience has been great. The best part by far is that you can benefit from async io handling without having to write every one of your views in an async fashion. All the async complexity is offloaded into the extractors and the response sending.
评论 #17191527 未加载
评论 #17191532 未加载
jason_osteralmost 7 years ago
I evaluated a few different Rust web frameworks, where performance was the deciding factor. A minimum viable echo server was put through its paces with `h2load` on a relatively recent MacBook Pro. `actix-web` was literally 100x faster than the next fastest competing framework.<p>The benchmark result really confused me. But you&#x27;ll find that the `actix` actors are extraordinarily lightweight and highly optimized around the equally lightweight and highly optimized Futures. The design is hard to beat, from a performance standpoint.
评论 #17194623 未加载
评论 #17194933 未加载
Dowwiealmost 7 years ago
Actix-web is great! I&#x27;ve adopted it for my projects. I can take <i></i>full<i></i> advantage of what Rust offers for concurrency and safety without going too deep into the weeds. Documentation, a growing number of examples, a very responsive author, and growing community are some of the reasons why I think this project is going to play a major role in Rust&#x27;s web development story going forward.
sudeepjalmost 7 years ago
&gt; fn greet(req: HttpRequest) -&gt; impl Responder<p>Nice to see front page example using &#x27;impl&#x27;, the recent most improvement in ergonomics. Before 1.26 things would be different. This makes me more appreciative of the efforts from Rust team&#x2F;community to improve the ease of use.
评论 #17195151 未加载
nevi-mealmost 7 years ago
I&#x27;ve had relatively good success moving some microservices from Kotlin to Rust (mainly saving about 90% resident memory util). I picked up Actix recently, and so far I&#x27;m enjoying using it. If Rust library support for geospatial tools was as good as turf.js, I&#x27;d be able to move a lot more stuff into Rust.
评论 #17192196 未加载
评论 #17195199 未加载
评论 #17192013 未加载
评论 #17192049 未加载
znfialmost 7 years ago
Not sure if I&#x27;m missing something, but for the Techempower Bencharks [1] I had the impression that the bottleneck for other rust libraries were in accessing the database rather than handling http requests. However, looking at the code [2] it seems that the Actix solution isn&#x27;t doing anything special with regards to this. Can someone give a quick description of &quot;what&quot; is causing such a huge performance boost for Actix compared to other frameworks?<p>(I might add that this is a question I&#x27;ve had for a while, and I did not check the source at [2] in detail today.)<p>[1]: <a href="https:&#x2F;&#x2F;www.techempower.com&#x2F;benchmarks&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.techempower.com&#x2F;benchmarks&#x2F;</a><p>[2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;TechEmpower&#x2F;FrameworkBenchmarks&#x2F;tree&#x2F;master&#x2F;frameworks&#x2F;Rust&#x2F;actix" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;TechEmpower&#x2F;FrameworkBenchmarks&#x2F;tree&#x2F;mast...</a>
评论 #17195119 未加载
评论 #17199324 未加载
kibwenalmost 7 years ago
It appears that Actix&#x27;s primary author works for Microsoft, does anyone know if Microsoft is using it internally for anything?
评论 #17191554 未加载
jsandler18almost 7 years ago
I tried using actix for a recent project. I just could not get it to do what I wanted to. It always felt like a fight. I switched to rocket and everything is so much easier.<p>Everyone is saying great things about it, but I just want to point out that it&#x27;s not for everyone.
评论 #17192200 未加载
评论 #17192715 未加载
评论 #17192100 未加载
评论 #17192632 未加载
评论 #17197321 未加载
评论 #17192695 未加载
chewbachaalmost 7 years ago
I recently ported a very small micro service from Rocket to Actix and found the migration to be painless. In fact, it&#x27;s use of types and inferencing along with integration with Serde made it very easy. It also worked on stable-rust and can work with connection pooling against postgres. This makes it a winner in my mind.<p>I&#x27;m excited to use it again in my next service.
评论 #17192806 未加载
fafhrd91almost 7 years ago
recent TechEmpower benchmarks results<p>Citrine: <a href="https:&#x2F;&#x2F;www.techempower.com&#x2F;benchmarks&#x2F;#section=test&amp;runid=60fab9eb-a5ad-49cb-aefe-24ad0f377122&amp;hw=ph&amp;test=plaintext" rel="nofollow">https:&#x2F;&#x2F;www.techempower.com&#x2F;benchmarks&#x2F;#section=test&amp;runid=6...</a><p>Azure: <a href="https:&#x2F;&#x2F;www.techempower.com&#x2F;benchmarks&#x2F;#section=test&amp;runid=b837bda0-fb68-4a98-9b25-eaad92039cea&amp;hw=ph&amp;test=fortune" rel="nofollow">https:&#x2F;&#x2F;www.techempower.com&#x2F;benchmarks&#x2F;#section=test&amp;runid=b...</a>
infynyxx2almost 7 years ago
Browsing thru Actix guide (<a href="https:&#x2F;&#x2F;actix.rs&#x2F;actix&#x2F;guide&#x2F;" rel="nofollow">https:&#x2F;&#x2F;actix.rs&#x2F;actix&#x2F;guide&#x2F;</a>), I didn&#x27;t find any explanation regarding what will happen when actor(s) crashes or how crashes[1] are being handled?<p><a href="http:&#x2F;&#x2F;wiki.c2.com&#x2F;?LetItCrash" rel="nofollow">http:&#x2F;&#x2F;wiki.c2.com&#x2F;?LetItCrash</a>
评论 #17193405 未加载
评论 #17191640 未加载
SloopJonalmost 7 years ago
I came across this the other day while looking into Flow, the C++ extension used to write FoundationDB. This Github issue asks about a benchmark on which Flow claims really good results:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;actix&#x2F;actix&#x2F;issues&#x2F;52" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;actix&#x2F;actix&#x2F;issues&#x2F;52</a><p>Actix does pretty well too.
stusmallalmost 7 years ago
What a great looking site. I&#x27;ve been really exciting about actix for a while now. We just started some internal experiments with it here and I&#x27;m looking forward to more.
评论 #17192626 未加载
deftalmost 7 years ago
Looks nice, really great landing page too. Informative and concise, didn&#x27;t leave me asking &quot;what is this?&quot;
评论 #17192412 未加载
berkusalmost 7 years ago
I started porting one of rocket-based synchronous services to actix-web and so far I&#x27;m pleased with the process.
reacharavindhalmost 7 years ago
I have just started playing with Actix-web. Rust-Noob as well. The yellow world example compiled to a binary that was ~ 5 MB.<p>As a general case, Actix-web pulls in a lot of dependencies at install, and compile time.Are all of those dependencies really necessary for a hello world scenario?<p>Being a Rust newbie, I thought maybe I was using the wrong tool and started to look at hyper instead..
评论 #17192288 未加载
评论 #17195075 未加载
评论 #17192276 未加载
zarvoxalmost 7 years ago
I&#x27;ve recently been building an IRC bouncer and webapp with Actix, and it&#x27;s been really smooth sailing so far -- excellent documentation, extensive examples, and everything I&#x27;ve touched so far has just worked the way you&#x27;d expect it to. It&#x27;s a gem of a project.
评论 #17192030 未加载
LambdaComplexalmost 7 years ago
Can someone explain to me what advantage the actor model provides for a web server?
评论 #17191285 未加载
kev009almost 7 years ago
This looks really nice! I learned Scala primarily to use the Play Framework which is a fabulous way to build large web applications. This looks spiritually quite similar, but with the advantages of Rust.
评论 #17194778 未加载
评论 #17194251 未加载
cccccccccccccalmost 7 years ago
Question: What is the point of making the fastest web server possible when any kind of datastore attached to the server is going to be the bottleneck?
评论 #17196564 未加载
评论 #17195991 未加载
评论 #17203378 未加载
rubyfanalmost 7 years ago
Why do so many Rust projects lead with telling you their number one feature is type safety? It’s Rust we get it, stop telling us about your type safety!<p>Also, what problem is this solving that countless other near identical web frameworks don’t already solve?
评论 #17193760 未加载
评论 #17196826 未加载
评论 #17196314 未加载
some_accountalmost 7 years ago
I really love seeing rust making progress. It&#x27;s a fantastic (with slightly ugly syntax) language that I want to learn. :)
baituhuangyualmost 7 years ago
really?
baituhuangyualmost 7 years ago
really?