Architect a production Rust web service with Axum 0.8 for routing, SQLx for compile-time-checked SQL, tower middleware, tracing for observability, and the patterns for handlers, extractors, and graceful shutdown.
## CONTEXT Axum has become the dominant Rust web framework as of 2026, surpassing actix-web in new project adoption due to its tighter integration with the Tokio ecosystem, cleaner extractor model, and direct use of tower middleware which is also used by Tonic (gRPC) and reqwest (HTTP client). The combination of Axum…
Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with Pro