This chapter delves into the technical aspects of HTTP handling with a Rust-based server, focusing on the use of the hyper library for reliable HTTP handling and the unique architecture of the Grannyon server with independent loops in Python and Rust. Discussions include runtime modes, threading options, and their impact on performance, scalability, and resource allocation for Python and Rust components. Additionally, the chapter touches on asynchronous code challenges in Python, memory consumption issues, process management complexities, and future plans for feature enhancements in the server.
So you've created a web app with Python using Flask, Django, FastAPI, or even Emmett. It works great on your machine. How do you get it out to the world? You'll need a production-ready web server. On this episode, we have Giovanni Barillari to tell us about his relatively-new server named Granian. It promises better performance and much better consistency than many of the more well known ones today.
Episode sponsors
Neo4j
Talk Python Courses
Links from the show