Heiko Seeberger - EventSourced - async_fn_in_trait in anger

Sdílet
Vložit
  • čas přidán 10. 04. 2024
  • Rust's async story is a great success, but has not yet been told to the end. So far we are not yet able to use async functions in traits, but this will change soon: „async functions in traits“ is a major upcoming feature which has already arrived in nightly Rust. In this talk we show how we used it to create EventSourced, a framework for event sourced entities in Rust. We give an overview of EventSourced and dive into how „async functions in traits“ is used to build the relevant abstractions, e.g. an event log. Using only a few slides but a lot of live coding, we cover the benefits and show the problems we encountered.
  • Věda a technologie

Komentáře • 2

  • @Heater-v1.0.0
    @Heater-v1.0.0 Před měsícem +6

    Ha! I have been there: "Let's add some life times". Then sprinkle lifetimes liberally everywhere. It's easy to end up with lifetimes where they should not be with "interesting" results.

  • @TechTalksWeekly
    @TechTalksWeekly Před měsícem

    I think there's a typo in the speaker's name. It should be Heiko Seeberger, and not Seeburger.