High-Performance FastAPI Gateway
A production-grade API Gateway built with FastAPI, designed for high throughput, low latency, and ease of extensibility.
🚀 Features
- High Performance: Built on Starlette and Pydantic for maximum speed.
- Rate Limiting: Redis-backed distributed rate limiting (Token Bucket).
- Caching: Smart response caching with Redis.
- Async Architecture: Fully asynchronous capability for IO-bound operations.
- Middleware: Request tracking, unique IDs, structured logging.
- Scalable: Dockerized and ready for Kubernetes orchestration.
📁 Project Structure
backend-fastapi-high-performance-gateway/
├── app/
│ ├── api/ # API Route Controllers
│ ├── core/ # Config, Security, Events
│ ├── middleware/ # Custom Middleware (Rate Limit, Logging)
│ ├── schemas/ # Pydantic Models
│ ├── services/ # Business Logic & External Calls
│ └── main.py # Application Entrypoint
├── tests/ # Pytest Suite
├── Dockerfile # Production Docker Image
├── docker-compose.yml# Local Dev Environment
└── pyproject.toml # Dependency Management
🛠️ Quick Start
# Clone the repository
git clone https://github.com/Shivay00001/backend-fastapi-high-performance-gateway.git
# Run with Docker Compose (includes Redis)
docker-compose up --build
# Access Documentation
# Swagger UI: http://localhost:8000/docs
# ReDoc: http://localhost:8000/redoc
⚡ Benchmarks
Designed to handle 10k+ req/sec on modest hardware with proper tuning.
📄 License
MIT License
Metadata
Release files for shivays-fastapi-gateway-v1 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shivays_fastapi_gateway_v1-1.0.0.tar.gz | 6.9 kB | Without provenance | Details for shivays_fastapi_gateway_v1-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shivays_fastapi_gateway_v1-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for shivays_fastapi_gateway_v1-1.0.0-py3-none-any.whl |
Total release size: 15.6 kB
Release files / shivays_fastapi_gateway_v1-1.0.0.tar.gz
| Download URL | shivays_fastapi_gateway_v1-1.0.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23403523ef10fb0a3ccd2b0ba5fd5652a44ffe64c956f1f759177143b3d9a06e
|
|
BLAKE2b-256 checksum How to use checksums |
f3f8a30c880a42498bd10a8628ed1c24dc7338ff9c44b285d2c42775a6ab71cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|
Release files / shivays_fastapi_gateway_v1-1.0.0-py3-none-any.whl
| Download URL | shivays_fastapi_gateway_v1-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1dab7d1462e548bb0fb8fcfee3108f02dd9591a51fb12672c76eee5ee38ecf3c
|
|
BLAKE2b-256 checksum How to use checksums |
1c9a01a2c79bfbe4a339207e948c2ca1c256919dcf578b8fbc84ffbaf62eb19e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|
Security for shivays-fastapi-gateway-v1 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.