Is it as fast as claimed?
Is it as fast as claimed?
Yes. Powered by Rust and Axum, FastrAPI outperforms FastAPI by up to 33x in real-world benchmarks, with no compromises on usability.In benchmark tests with 20 virtual users over 30 seconds:
- FastrAPI: 31,360 requests/sec with 0.59ms average latency
- FastAPI + Gunicorn (1 worker): 937 requests/sec with 21.08ms average latency
- FastAPI + Gunicorn (16 workers): 3,882 requests/sec with 4.84ms average latency
Do I need to know Rust?
Do I need to know Rust?
Nope. FastrAPI lets you write 100% Python code while leveraging Rust’s performance under the hood.You use the same familiar Python syntax and decorators you’re used to from FastAPI. The Rust integration is completely transparent - you don’t need to write or understand any Rust code to use FastrAPI.
Can it handle complex APIs?
Can it handle complex APIs?
Absolutely. With full Pydantic integration and async support, FastrAPI scales effortlessly for small projects and enterprise-grade APIs alike.FastrAPI supports:
- Complex Pydantic models with validation
- Async/await for concurrent request handling
- Dependency injection for clean code organization
- Middleware for cross-cutting concerns
- WebSockets for real-time communication
- Multiple response types (JSON, HTML, custom)
Will it keep up with FastAPI updates?
Will it keep up with FastAPI updates?
Yes. FastrAPI mirrors FastAPI’s decorator-based syntax, ensuring compatibility and instant access to familiar workflows.While FastrAPI is not a direct fork, it maintains API compatibility with FastAPI’s core features, making it a true drop-in replacement for most use cases.
How do I switch from FastAPI to FastrAPI?
How do I switch from FastAPI to FastrAPI?
Switching is as simple as changing your import:Most FastAPI code will work without modification. Some advanced features may not be available yet - check the roadmap for details.
What features are missing compared to FastAPI?
What features are missing compared to FastAPI?
FastrAPI is still in active development. Some advanced features are not yet implemented:
- APIRouter and include_router()
- app.mount() for static files and sub-apps
- Lifespan events (@app.on_startup / @app.on_shutdown)
- Built-in TestClient
- GraphQL support
- Hot reloading
Why is FastrAPI so much faster?
Why is FastrAPI so much faster?
FastrAPI achieves its performance through several architectural improvements:
- Rust-powered core - Built on Axum and Tokio for native async performance
- O(1) route lookup - Uses papaya concurrent hashmap instead of regex matching
- Pre-computed dependency injection - One-time parsing at decorator time, not per request
- Fast-path optimization - Trivial endpoints skip unnecessary validation and kwargs processing
- Efficient JSON serialization - Easy integration with fast serializers like orjson
- Memory safety - Rust’s ownership model prevents common performance pitfalls
- Native async runtime - Tokio provides better concurrency than Python’s asyncio
What Python versions are supported?
What Python versions are supported?
FastrAPI requires Python 3.8 or higher.It works with both CPython and PyPy implementations.
Can I use existing FastAPI extensions?
Can I use existing FastAPI extensions?
It depends. FastrAPI maintains API compatibility with FastAPI’s core features, so many extensions should work.However, extensions that rely on FastAPI’s internal architecture or advanced features may not work yet. Test your specific extensions to verify compatibility.
How do I install FastrAPI?
How do I install FastrAPI?
You can install FastrAPI using pip or uv:
Is FastrAPI production-ready?
Is FastrAPI production-ready?
FastrAPI is still in active development (version 0.2.8). While it’s stable and performant for many use cases, some advanced features are not yet implemented.For production use:
- Verify that all features you need are available
- Test thoroughly with your specific workload
- Monitor the roadmap for upcoming features
- Join the community and report any issues you encounter
How can I contribute?
How can I contribute?
Contributions are welcome! Check out the contributing guide to get started.You can contribute by:
- Reporting bugs and issues
- Submitting pull requests for new features
- Improving documentation
- Sharing your FastrAPI projects
- Helping other users in discussions
Where can I get help?
Where can I get help?
If you need help with FastrAPI:
- Check this documentation
- Search existing issues on GitHub
- Create a new issue if you find a bug
- Tag @ppmpreetham for questions