Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the Salvo web framework for Rust in this comprehensive video tutorial. Learn about Salvo's architecture built on the Tokio stack, installation process, and how to create your first "Hello World" application. Compare Salvo's performance against other Rust web frameworks like Rocket.rs and Actix-Web through quick benchmarks. Dive into Salvo's key feature - the chainable tree routing mechanism - and discover how to implement custom handlers, serve static web content, and integrate middleware such as compression. Follow along as the tutorial demonstrates serving HTML pages, React applications, and public directories. Gain insights into the pros and cons of using Salvo and evaluate its suitability for production environments. By the end of this 33-minute guide, you'll have a solid understanding of Salvo's capabilities and whether it lives up to its claim as the simplest Rust web framework.
Syllabus
- intro
- what is salvo
- salvo is built on the tokio stack
- install salvo
- salvo hello world
- performance testing salvo with wrk
- serving up static html pages
- chainable tree routing with salvo
- serving public directories
- using middleware to compress with brotli
- serving react apps
- pro's and cons
- conclusion
Taught by
Chris Hay