Tokio Axum with David Pedersen

Monday, February 21st, 2022

In this highly informative interview, the library author David Pedersen explains Tokio Axum, covering a wide variety of topics.

  • 0:00 Introduction
  • 0:17 What is Tokio Axum?
  • 2:55 Error handling model
  • 5:10 IntoResponse trait
  • 6:00 Relationship with ‘tower’ and ‘tower-http’ crates
  • 9:58 Documentation
  • 11:11 ‘extractor’ module (Request)
  • 17:00 FromRequest trait
  • 17:58 ‘response’ module
  • 19:47 Implementations of IntoResponse trait
  • 20:39 ‘axum_extra’ crate, writing ergonomic middleware with ‘from_fn’
  • 24:20 ‘axum_core’ crate, writing libraries to work with Axum
  • 25:55 middleware onion logic + next version of docs
  • 30:08 ‘handler’ trait
  • 32:06 Examples
  • 32:43 “Routes and handlers close together” Example
  • 35:45 Error handling and dependency injection Example
  • 37:33 Websockets Example
  • 39:37 Static file serving Example
  • 41:40 Current state and future of Tokio Axum
  • 45:04 Contributing to Axum
  • 49:33 What is the hard thing about building such a project?
  • 52:17 Thanks!

Tokio Axum Links: https://github.com/tokio-rs/axum
https://docs.rs/axum/latest/axum/

Tokio Discord Server: https://discord.com/invite/tokio

David Pedersen: https://github.com/davidpdrsn
https://twitter.com/davidpdrsn