Level 1 · Apprentice0 XP
Routing, shared state, JSON, a database pool and compile-time checked SQL.
Step 1 / 6
ProblemOne endpoint in a Kotlin system handles 50,000 requests per second and dominates cloud costs. The team wants a small, very efficient service for just this path.
← → step
Before this: Async Rust with Tokio
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Core (30 min): build an axum service with GET /products/{id} from an in-memory map and an AppError type implementing IntoResponse that returns 404. Stretch: back it with PostgreSQL through sqlx, add POST, a timeout middleware, and an integration test using a Testcontainers database.