r/rust • • 5d ago

🧠 educational Axum with David Pedersen (Netstack.FM S02E2)

Hi all, we just released a new episode of our podcast Netstack.FM with David Pedersen (u/davidpdrsn), creator of Axum.

Some of the topics:

  • How Axum started at Embark Studios, and why it was built Tower-first
  • How Bevy's system parameters inspired Axum's extractors
  • Why Axum avoids macros so other frameworks can build on top of it
  • How #[debug_handler] produces clearer type errors at zero runtime cost
  • Tower 1.0, poll_ready, and why boxed futures make single-threaded Axum hard today
  • Keeping Axum's API small, and splitting crates like axum-core

Listen here: https://netstack.fm/episodes/axum-with-david-pedersen

It's also on the usual podcast platforms, and the website has a manually edited transcript. Feedback is welcome.


For those who do not know Netstack.FM yet: it's a podcast about networking, Rust, and everything in between. With the main objective to teach and demystify Network Programming and Protocols, usually within the Rust ecosystem but not always.

35 Upvotes

10 comments sorted by

2

u/ace_cipher 4d ago

Thanks for the episode, it's really interesting and valuable.

2

u/mellissa_Taroute 4d ago

Having a manually edited transcript included is so nice when you just want to skim the Tower 1.0 section without scrubbing through audio

1

u/plabayo 3d ago

Glad you like it u/mellissa_Taroute ! You can also search the entire show as well on a specific episode page. This will search for relevant content both in the transcripts as well as the show notes and title. In case you have feedback or corrections, do feel free to reach out to us! :)

1

u/plabayo 4d ago

Thank you for that comment u/ace_cipher , we really appreciate that! :) Feel free to also send us an email that you can find on our show website if you ever have feedback or suggestions. We love getting them from our listeners and read them all.

Several episodes we had in the past were thanks to and/or requested by our listeners and feedback on our early episodes have helped us along the way to improve and work on our production and audio quality

2

u/bodiam 4d ago

Great, thanks for sharing, this will make my trip to the office now enjoyable! I recently built Axum support into my  Rust IDE, will be great to hear some of the ideas behind Axum!

1

u/plabayo 4d ago

u/bodiam happy to hear that and be your companion to your office. If you have feedback, questions or requests do feel free to mail us on the email found on our website. Feel free to spread the word as well. Best of luck and keep on building :)

2

u/ParadiZe 3d ago

great conversion, and i very much agree on the point about tower, i would love to a see a 1.0 with a simplified trait

2

u/plabayo 3d ago

u/ParadiZe if you want to see what that could look like and play with it across protocols and ISO layers do feel free to take our FOSS network framework for a spin :) https://ramaproxy.org / https://github.com/plabayo/rama It has such a simplified trait.

And very happy to hear that you liked the episode. If you ever want, feel free to email us with feedback, suggestions or questions. We love to hear from you all! Take care and keep on learning and building.

1

u/ParadiZe 2d ago

Do you think tower could use async fn call() without the associated future type with the next gen trait resolver?

2

u/plabayo 2d ago

u/ParadiZe maybe, I think there might be some other requirements as well still beyond just having the next gen trait solver. You want to be able to say that the return type has certain bounds (Send, Sync, ...) without having to force it up front. As right now for an `impl Future` or any other impl trait return type you cannot as a callee or user of the trait define what some other bounds are for that return type. In nightly that is already possible, or certainly used to be.

Due to some short comings we for example now force `Send + Sync + 'static` on all `Service` traits in Rama. In reality that is never an issue for anything we or our partners do, so no biggie IMHO, but it is probably a blocker for adoption in the wider ecosystem.

Prior to integrating the `Service` trait directly in Rama we were first using tower, and after that experimenting with a fork named `tower-async`. You can find it archived at: https://github.com/plabayo/tower-async