filmov
tv
Async I/O in Depth: HTTP Web Server

Показать описание
With this video we create an HTTP Web Server in Rust using the TcpListener and TcpStream. We implement several variations of async architectures to work with our web server. Iterative Sync requests, forking multiple processes, pre-forked processes, and a threaded model. We cover the use of a Radix Tree to implement the router for our web server. We also cover sending and reading static files as well. We cover the use of a BufWriter and BufReader to handle reading and writing to the socket rather than having to explicitly manage the buffers themselves. *Bonus:* We also make use of a colored crate to make the pid values in our terminal look a bit better.
↠ References:
Cheers! 🍻
🦀 #rust #rustlang #rustprogramming #exercises #programming
↠ References:
Cheers! 🍻
🦀 #rust #rustlang #rustprogramming #exercises #programming
Комментарии