What problem does it solve?
Litestar's default uvicorn ASGI server has lower throughput, no native HTTP/2 support, and higher memory usage, creating performance bottlenecks for production applications. This Skill provides a first-party, drop-in replacement with the Granian Rust-based ASGI server to eliminate these limitations.
Core Features & Use Cases
- Drop-in Plugin Integration: Add GranianPlugin to your Litestar app with no major code changes, and the standard
litestar run command automatically uses Granian instead of uvicorn.
- Production-Grade Performance: Get native HTTP/2 support, higher throughput, and lower memory footprint for Litestar deployments, with full compatibility with Litestar's lifespan, signal handling, and dev-mode reload logic.
- Use Case: Deploy a high-traffic Litestar API that requires HTTP/2 support and low memory usage, tuning worker counts, threading modes, and backpressure limits directly via the familiar
litestar run CLI flags.
Quick Start
Use the litestar-granian skill to add GranianPlugin to your Litestar app and configure production-ready server settings via the standard litestar run CLI.