Rust + Serverless = LOVE - Maxime David - Rust Linz, July 2023

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • Discover the unbeatable synergy of Rust with serverless components such as AWS Lambda or GCP Cloud Run. Why Rust is the perfect match for serverless architecture? Uncover the unique features of Rust that make it the top choice for building ultra-efficient and robust serverless apps. Don't miss this chance to revolutionize your cloud development game and enjoy a 100% serverless pizza tracker demo! 🍕
    --
    Maxime David is a life-long open source aficionado and Senior Software Engineer advancing serverless topics at Datadog. He’s keen on code profiling, and believes that performance in software matters. When he’s not optimizing software, he likes to try every banana bread he can find.

ความคิดเห็น • 19

  • @RoamingAdhocrat
    @RoamingAdhocrat ปีที่แล้ว +6

    Rust + Serverless = Love - Maxime David - Rust
    simplifying:
    Serverless = Love - Maxime David
    solve for Maxime David:
    Maxime David = Love - Serverless

    • @RoamingAdhocrat
      @RoamingAdhocrat ปีที่แล้ว +3

      or Maxime David + Serverless = Love

    • @maxday_coding
      @maxday_coding ปีที่แล้ว +3

      ahahah brillant demonstration!

    • @Supermath101
      @Supermath101 ปีที่แล้ว +4

      I believe you've made an error. To simplify, you need to add Rust to both sides. Thus, the simplified equation is 2(Rust) + Serverless = Love - Maxime David
      Note that there's a coefficient of two in front of Rust.

  • @maxday_coding
    @maxday_coding ปีที่แล้ว +8

    Thanks for posting the replay! Let me know if you have any questions!

    • @moy2010
      @moy2010 ปีที่แล้ว

      How is the Websocket connection kept alive when using serverless?

    • @aaronme
      @aaronme ปีที่แล้ว

      @@moy2010 It's handled by AWS and they are alive for like 10-15 mins usually. I've experienced that it got closed after this time without warning and so i reinitiate the websocket connection every 10 minutes and drop the old one. using a TTL on the dynamodb table which cleanes dead connections.

    • @LikeAndFavBF3
      @LikeAndFavBF3 11 หลายเดือนก่อน

      Is the code available in a GitHub repo for the Pizza tracker from the video?

  • @markusbergkvist4882
    @markusbergkvist4882 ปีที่แล้ว +4

    Thanks for the presentation!
    You should consider moving some of the code from the handler function to the main function, e.g. reading env vars, DDB client initialisation etc. Should reduce both cold starts and warm starts.

    • @aaronme
      @aaronme ปีที่แล้ว

      wow, i had no idea that this would play a role?

  • @guylandry9257
    @guylandry9257 3 หลายเดือนก่อน +1

    Very informative.

  • @abhibhagat7767
    @abhibhagat7767 ปีที่แล้ว +1

    In `func()` we seem to be creating a `DynamoDbClient` object each time `func()` is called. Am I wrong?

    • @maxday_coding
      @maxday_coding ปีที่แล้ว +1

      that's correct, it could definitely be moved outside of the handler

  • @iamantoniosouza
    @iamantoniosouza 11 หลายเดือนก่อน +1

    Thanks for all those valuable insights about Rust in a serverless environment ✌️

    • @maxday_coding
      @maxday_coding 10 หลายเดือนก่อน

      Thanks! Glad you liked it!

  • @privettoli
    @privettoli ปีที่แล้ว

    Lambda restricts to only 1 request at a time, which might be good for CPU-intensive apps but if your source of events is coming from the client, non-blocking Rust app would be able to handle thousands of request per second if deployed to Fargate so it's kinda less optimal.

  • @Abhishek54369
    @Abhishek54369 8 หลายเดือนก่อน

    Github link?