actix
Installation
SKILL.md
Actix Web
Actix Web is one of the fastest web frameworks in the world (TechEmpower benchmarks). It uses the Actor Model (though less visible in v4) for concurrency.
When to Use
- Raw Speed: When req/sec is the primary metric.
- Microservices: Low footprint, high throughput services.
- WebSockets: Efficient handling of millions of connections (actix-web-actors).
Core Concepts
App Factory
App::new() is a factory called for each thread. State must be wrapped in web::Data.
Extractors
Similar to Axum, but uses web::Json, web::Path.