Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Zero To Production In RustLuca Palmieri

    Zero To Production In Rust

    Luca Palmieri · 2022

    Zero To Production is the ideal starting point for your journey as a Rust backend developer. You will learn by doing: you will build a fully functional email newsletter API, starting from scratch. You'll learn how to: Navigate and leverage Rust's crates ecosystem Structure your application to make it modular and extensible Write tests, from single units to full-blown integration tests Enforce your domain invariants using Rust's type system Authenticate and authorize users of your API Implement a robust error handling strategy Observe the state of your application using structured logs Set up an extensive continuous integration and continuous deployment pipeline for your Rust projects

    Programming
    Open Library
    Stats for nerds
    24recommend
    39mentions
    29people
    2020–2026years
    87% recommend10% neutral3% critical

    Mentions per year

    2020202120222023202420252026

    What Hacker News says

    1. dgroshevSep 2026
      Fragile boilerplate.

      I love "Zero to Production in Rust", but that's a pretty long book that recreates a fraction of what comes out of the box with Django. Also, when things come with Django, there's no need to maintain or worry about subtle yet crucial bugs.

      thread
    2. bsnnkvDec 2024
      I'd highly recommend reading some articles by Luca Palmieri[1], or even buying his book[2]. Although I didn't learn this stack by working through his book, whenever I had questions through the years, my searches usually led me to his articles which are often excerpts from the larger book.

      The high level of API stability and lack of churn in the Actix ecosystem makes the book a particularly good investment for someone looking to settle on this stack in my opinion. In keeping with the topic of this submission, I doubt I'd be comfortable spending money on a similar book about building web apps with React.

      [1]: https://www.lpalmieri.com/posts/2020-08-09-zero-to-productio...

      [2]: https://www.zero2prod.com

      thread
    3. skeptruneOct 2024
      It really doesn't, actix is already there. Recently built my startup code over the past couple years with Actix and it had literally everything we needed easily. We just need more documentation and reference code bases demonstrating how to do these things. Rust devs tend to be fairly advanced and seemingly don't write enough docs or shares.

      >Routing/handlers

      Actix has it.

      >Templates

      Minijinja or liquid-rust[1]

      >Static file serving

      actix-files[2]

      >Logins

      Actix with oidccore is fantastic and easy[3]

      >Permissions

      Actix FromRequest is literally perfect. We have perm levels (admin, owner) and per-route perms for more fine-grained control.[4]

      > Database interface

      Diesel with diesel_async for connection pooling has been flawless at scale.

      > Admin tooling

      We didn't do this, but it would be simple with a bin/load-data.rs file that runs via a docker start command or tmuxp pane.

      > Hot reloading

      Cargo watch is getting deprecated, but was great. Bacon and and Watchexec are fully qualified successors. CSS watch systems work with the templates already same way as they do for SPAs.

      > Background tasks

      Make a bin/worker.ts file which defines a single binary and then use redis or another queing sytem to communicate between the worker and core server. We loaded all of HN (40M docs) into a search index with this approach and it was easy.

      > Monitoring/observability

      There's a decent story here with structured logging. Zero to production in Rust has a good chapter on it (2020) [5]. Lots of progress has been made since and exposing prom metrics endpoint is straightforward [6]. Sentry support is also decent and they sponsor actix.

      > Caching

      Imo, the story with Redis + actix is fine. We do this with our auth middleware to reduce latency on that operation since it happens with every route and I think it's smooth with FromRequest.

      > Emails and other notifications

      What's wrong with SMTP? Plus, Keycloak will handle your password reset infra out of the box. SDKs here could be better, but the APIs are fine and not too bad to do with Reqwest yourself.

      > Deployment tooling + CSS/JS bundling

      Imo, both of these things are the same as with other languages. Rust could use more documentation, but I don't think there's anything making it particularly hard to use.

      [1]: https://github.com/devflowinc/hn-search-RAG/blob/main/actix-...

      [2]: https://github.com/devflowinc/hn-search-RAG/blob/main/actix-...

      [3]: https://github.com/devflowinc/trieve/blob/main/server/src/ha...

      [4]: https://github.com/devflowinc/trieve/blob/main/server/src/ha...

      [5]: https://www.lpalmieri.com/posts/2020-09-27-zero-to-productio...

      [6]: https://romankudryashov.com/blog/2021/11/monitoring-rust-web...

      thread
    4. ducdetronquitoAug 2024
      Congrats on the release, it like every bit of it !

      I hope Gleam will find more sponsors for Louis and the core contributors, especially one from a stable company !

      On this side, have you thought about publishing paid educational content to both pay the bill and still contribute to Gleam’s growth ? I don’t know for others but I would love to pay for something like Luca Palmieri’s book Zero To Production in Rust but in Gleam !

      Cf: https://www.zero2prod.com/index.html

      thread
    5. tkubackiJul 2024
      This book is good but I think it’s too hard for beginners. I would recommend to read ‘zero to production in Rust’ by Luca Palmieri first especially if you like more learning by doing approach
      thread
    6. haakonfpJul 2024
      agreed, and the book is pretty upfront about it being for more intermediate readers. i felt like i hit the sweet spot for this book after having gone through the rust programming language [0], zero to production in rust [1], and having worked on a few larger rust projects. all three books are really good in their own way.

      [0] https://doc.rust-lang.org/book/ [1] https://www.zero2prod.com/

      thread

    Related

    Cover of The Rust Programming Language
    2015–2026

    The Rust Programming Language

    Steve Klabnik
    170 recommend · 257
    Cover of Programming Rust
    2015–2026

    Programming Rust

    Jim Blandy
    64 recommend · 114
    Cover of Rust in Action
    2018–2025

    Rust in Action

    Tim McNamara
    17 recommend · 41
    Cover of Rust for Rustaceans
    2021–2026

    Rust for Rustaceans

    Jon Gjengset
    16 recommend · 33
    Cover of Effective C++
    2007–2026

    Effective C++

    Scott Meyers
    112 recommend · 212
    Cover of How to Design Programs
    2007–2026

    How to Design Programs

    Matthias Felleisen
    277 recommend · 776
    Cover of Clean Code
    2008–2026

    Clean Code

    Robert C. Martin
    298 recommend · 951
    Cover of Designing Data-Intensive Applications
    2014–2026

    Designing Data-Intensive Applications

    Martin Kleppmann
    457 recommend · 846