Leptos + Actix - Rust: Isomorphic Systems Architecture
This project is a study in Predictable Performance. By replacing a Garbage Collector with Rust’s Ownership and Borrowing model, I’ve built a service that eliminates the "runtime surprises" common in traditional managed environments.
The architecture serves a Leptos SPA directly from Actix Web, creating a single, high-performance unified binary.
A key highlight is the use of SQLx macros to verify PostgreSQL schema compatibility at compile-time—effectively preventing runtime database errors before the binary is even deployed. I managed complex Optimistic UI flows using Leptos Actions to ensure a seamless, low-latency user experience.
The Forge Specs
- ✦ Reactivity: Leptos Signals and Resources (Zero-VDOM overhead)
- ✦ Database: SQLx with Compile-Time Schema Validation (PostgreSQL/NeonDB)
- ✦ Architecture: Unified Binary (Actix Web serving Leptos SPA)
- ✦ Safety: shared type-system from DB layer to Browser WASM
- ✦ UX: Optimistic UI flows (inline editing/deletions) via Leptos Actions
- ✦ Deployment: Frontend and Service on Leapcell; Database on Neon