Back to Browse

is salvo really the simplest rust web framework? | rustlang | rust programming

8.1K views
Jun 6, 2022
33:21

salvo claims to be simplest rust web framework. is it really? in this video, chris gives an overview of Salvo and how it's built on-top of the tokio stack. chris gives an introduction to Salvo, how to get it installed and how to code your first hello world salvo application. in addition, we do a quick performance test of Salvo and compare the performance to other rust web frameworks such as Rocket.rs and Actix-Web. We then pull back the layers and look at Salvo's key differentiator which is it's chainable tree routing mechanism and we look at how easy it is to use and code. We do this both by creating custom handlers and some static web applications such as an html page and a react application. we look hooking up middleware such as compression and how easy it is to incorporate into your router. Finally we discuss the pro's and cons of Salvo and whether you should use in production. 00:00 - intro 00:41 - what is salvo 01:10 - salvo is built on the tokio stack 03:48 - install salvo 06:20 - salvo hello world 11:46 - performance testing salvo with wrk 14:38 - serving up static html pages 10:30 - chainable tree routing with salvo 21:30 - serving public directories 25:12 - using middleware to compress with brotli 27:23 - serving react apps 30:24 - pro's and cons 32:20 - conclusion

Download

0 formats

No download links available.

is salvo really the simplest rust web framework? | rustlang | rust programming | NatokHD