Volga
Fast, Easy, and very flexible Web Framework for Rust based on Tokio runtime and hyper for fun and painless microservices crafting.
💡 Note: This project is currently in preview. Breaking changes can be introduced without prior notice.
Tutorial | API Docs | Examples | Roadmap
Features
- Supports HTTP/1 and HTTP/2
- Robust routing
- Custom middlewares
- Dependency Injection
- WebSockets and WebTransport
- Full Tokio compatibility
- Runs on stable Rust 1.90+
Getting Started
Dependencies
[]
= "0.7.2"
= { = "1", = ["full"] }
Simple request handler
use ;
async
Performance
Tested a single instance on a laptop using 4 threads and 500 connections and under configuration:
OS: Arch Linux
CPU: Intel i7-8665U (8) @ 4.800GHz
RAM: 31686MiB
Results
Running 10s test @ http://127.0.0.1:7878/hello
4 threads and 500 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.39ms 1.05ms 18.45ms 81.47%
Req/Sec 89.69k 18.07k 126.91k 57.50%
3575551 requests in 10.07s, 395.55MB read
Requests/sec: 355053.82
Transfer/sec: 39.28MB