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.

Granian – a Rust HTTP server for Python applications

179 pointsby patrick91over 2 years ago

11 comments

giancarlostoroover 2 years ago
My first thought was &quot;this better be WSGI!!!&quot; and sure enough it is. If you&#x27;re doing Python web development and you have no idea what WSGI or ASGI are, you really ought to learn more about them. ASGI is the Async equivalent &#x2F; answer to WSGI. It is one of the main ways to deploy any web application in Python. Every major web framework supports it OOTB and heck, even one of the fastest web frameworks for Python (FastAPI) uses it exclusively.<p>Thanks to WSGI you can have projects like this that focus on scaling out your Python web all to the fullest extent possible.
评论 #34401431 未加载
评论 #34405050 未加载
评论 #34404594 未加载
评论 #34401925 未加载
TigerTeamXover 2 years ago
Looks super interesting. One of the things that I wanted to improve on are Gunicorn&#x27;s latency and here:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;emmett-framework&#x2F;granian&#x2F;tree&#x2F;master&#x2F;benchmarks">https:&#x2F;&#x2F;github.com&#x2F;emmett-framework&#x2F;granian&#x2F;tree&#x2F;master&#x2F;benc...</a> shows way better latency for Granian.<p>Kudos.<p>just, when would you consider this good enough for production?
评论 #34402273 未加载
评论 #34400445 未加载
AMCMneCyover 2 years ago
There is a similar project <a href="https:&#x2F;&#x2F;github.com&#x2F;sansyrox&#x2F;robyn">https:&#x2F;&#x2F;github.com&#x2F;sansyrox&#x2F;robyn</a><p>A framework for Python, the core of which is written in Rust
评论 #34400896 未加载
ultra_nickover 2 years ago
Collaborating with Python&#x2F;Web is a great way Rust to market itself.
评论 #34402486 未加载
dahatebover 2 years ago
Interesting project. Would it be able to run a fastapi project just like uvicorn in production?
评论 #34424752 未加载
kortexover 2 years ago
Can anyone give a quick synopsis of why this RSGI is needed? Can&#x27;t ASGI code be called from a Rust socket termination, a la Gunicorn?
评论 #34405851 未加载
ddejohnover 2 years ago
Very cool. Sounds like a perfect fit for the Starlite framework, which is using Rust for route handling.
Thaxllover 2 years ago
It looks like a wrapper arround hyper?
Alifatiskover 2 years ago
Any plans on implementing H3?
评论 #34403915 未加载
评论 #34399756 未加载
评论 #34402312 未加载
评论 #34401054 未加载
gdcbeover 2 years ago
Serious question: why would I want to use this? Is the answer as simple as “because I want to develop in Python”?.<p>Because if you’re going to do it in Rust, why not just go all the way with something like Axum?<p>That being said, first time I hear about WSGI&#x2F;ASGI, so I did some reading. From an educational perspective I’m intrigued and even will check the codebases at some point to see how it works.<p>But from a production POV I do not get why I would want to use it. What’s so great about it - besides letting you develop a reasonably fast server in Python, surely it is more then that?
评论 #34403865 未加载
评论 #34404749 未加载
评论 #34404408 未加载
fortran77over 2 years ago
Python comes with an HTTP server built-in!<p><a href="https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;library&#x2F;http.server.html" rel="nofollow">https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;library&#x2F;http.server.html</a>
评论 #34401291 未加载
评论 #34401457 未加载
评论 #34404860 未加载