Building Nanoservices With Rust
summary
A concrete build pattern surfaces: three workspaces (data-access, core, networking) compile into an one single Rust binary so services develop as microservices but deploy as a monolith; dependency injection via traits to swap databases and simple mock structs gives fast, type-checked unit tests; macros plus LLM-assisted codegen produce repetitive CRUD and trait scaffolding; static distroless builds embed the frontend (embed frontend apps) and shrink images, cutting infrastructure from $2,100/month to just $100/month in production examples (medical simulation and medical IoT).
AI-written summary · about
chapters (10)
- 0:00Introduction and background
- 3:09Microservices pros and cons
- 5:12Rust monolith structure
- 7:19Rust flexibility in web dev
- 10:26Networking layer implementation
- 12:53Macros and code generation
- 16:27Testing endpoints with macros
- 18:56Embedding React in Rust
- 21:43Deployment and cost savings
- 22:51Q&A and resources
