Master Hexagonal Architecture in Rust
Take the pain out of scaling. This guide has everything you need to write flexible, future-proof Rust applications using hexagonal architecture. Share better Rust! Contents Introduction Part I: Anatomy of a bad Rust application Part II: Separation of concerns, the Rust way Part III: Service, the heart of hexagonal architecture Part IV: Trade-offs of hexagonal architecture in Rust Part V: Advanced hexagonal architecture in Rust Exercises Discussion Hexagonal Architecture. You've heard the buzzwords. You've wondered, "why hexagons?". You think domain-driven design is involved, somehow. Your company probably says they're using it, but you suspect they're doing it wrong. Let me clear things up for you. By the end of this guide, you'll have everything you need to write ironclad Rust applications using hexagonal architecture. I will get you writing the most maintainable Rust of your life. Your production errors will fall. Test coverage with skyrocket. Scaling will get less painful. If you ha
Contents Introduction Part I: Anatomy of a bad Rust application What problems does hexagonal architecture solve? Hard dependencies and hexagonal architecture: how to make the right call Part II: Separation of concerns, the Rust way Getting started with hexagonal architecture The repository pattern in Rust Domain models Error types and hexagonal architecture Implementing AuthorRepository Everything but the kitchen async From the Very Bad Application to the merely Bad Application Testing HTTP handlers with injected repositories Part III: Service , the heart of hexagonal architecture Introducing
related reading
- Master Hexagonal Architecture in Rusthowtocodeit.com
- A half-hour to learn Rustfasterthanli.me
- Introduction - Asynchronous Programming in Rustrust-lang.github.io
- Patterns for Defensive Programming in Rust | corrode Rust Consultingcorrode.dev
- Writing an OS in Rustos.phil-opp.com
- Rust Language Cheat Sheetcheats.rs
- What is Ownership? - The Rust Programming Languagedoc.rust-lang.org
- Item 7: Use builders for complex types - Effective Rustlurklurk.org
- A data race that doesn't compilecorentin-core.github.io
- Hexagonal Architecture Explainedarhohuttunen.com
- Dependency Injection in Rust. Managing application state &… | by Orion Kindel | Geek Culture | Mediummedium.com
- Modular Errors in Rust - Sabrina Jewsonsabrinajewson.org