Chaitanya5068 /
cloud-native-ai-inference-platform
Production-grade distributed AI inference platform using AWS, Terraform, Docker, FastAPI, and private subnet worker architecture.
Loading repository data…
bunnysunny24 / repository
Production-grade distributed AI inference platform built with Spring Boot, FastAPI, RabbitMQ, Redis, Docker, and AWS, featuring asynchronous task orchestration, intelligent caching, and scalable ML worker pipelines.
A production-grade, high-throughput asynchronous AI inference pipeline built with Spring Boot 3.x, RabbitMQ, Redis, FastAPI (Python), Docker, and AWS.
This system implements task queues for model workers, result caching to minimize repeated inference latency, dead-letter-queue retry mechanics, task batching, and a real-time monitoring dashboard with glassmorphism dark-mode aesthetics.
graph TB
subgraph "Client Layer"
C[REST Client / Dashboard UI]
end
subgraph "API Gateway - Spring Boot"
API[REST API Controller]
TS[Task Service]
RC[Redis Cache]
RP[RabbitMQ Publisher]
SC[Status Controller]
end
subgraph "Message Broker"
RMQ[RabbitMQ]
WQ[inference.tasks Queue]
DLX[Dead Letter Exchange]
DLQ[inference.tasks.dlq]
RQ[inference.results Queue]
end
subgraph "AI Workers - FastAPI x3"
W1[Worker 1 - Sentiment]
W2[Worker 2 - Classification]
W3[Worker 3 - General]
end
subgraph "Data Layer"
RED[(Redis Cache + Task Store)]
end
C -->|POST /api/v1/inference| API
C -->|GET /api/v1/inference/:id/status| SC
API --> TS
TS -->|Check Cache| RC
RC -->|Cache Hit| TS
TS -->|Cache Miss| RP
RP -->|Publish Task| WQ
WQ -->|Consume| W1 & W2 & W3
W1 & W2 & W3 -->|Publish Result| RQ
RQ -->|Consume Result| TS
TS -->|Store Result + Cache| RED
WQ -->|On Failure| DLX
DLX --> DLQ
DLQ -->|Retry| WQ
PENDING status and published onto a RabbitMQ queue with specific priorities.COMPLETED, and saves the prediction to the cache with a 10-minute TTL.To start the entire network (Gateway, Redis, RabbitMQ, and 3 workers):
docker-compose up --build -d
Verify that all containers are healthy:
docker-compose ps
admin / admin123)curl -X POST http://localhost:8080/api/v1/inference \
-H "Content-Type: application/json" \
-d '{
"input": "This product exceeded my expectations! Incredible quality.",
"modelType": "SENTIMENT",
"priority": 1,
"useCache": true
}'
Response (200 OK):
{
"taskId": "7f9e8a8b-4b11-482a-bc9e-e31464fb56a8",
"status": "QUEUED",
"message": "Task submitted successfully"
}
curl -X POST http://localhost:8080/api/v1/inference/batch \
-H "Content-Type: application/json" \
-d '[
{"input": "I absolute hate the delay in shipping.", "modelType": "SENTIMENT"},
{"input": "New CPU microarchitecture achieves double efficiency.", "modelType": "CLASSIFICATION"}
]'
curl http://localhost:8080/api/v1/inference/7f9e8a8b-4b11-482a-bc9e-e31464fb56a8
Response (200 OK - Finished):
{
"taskId": "7f9e8a8b-4b11-482a-bc9e-e31464fb56a8",
"status": "COMPLETED",
"result": "positive",
"confidence": 0.985,
"latencyMs": 142,
"cached": false,
"message": "Task status: COMPLETED"
}
Run the included load testing utility to assert system capabilities under concurrency:
pip install -r inference-worker/requirements.txt
python scripts/load_test.py --requests 500 --concurrency 50
| Technology | Role | Port |
|---|---|---|
| Spring Boot 3.3 | Gateway, Task Distributor & Cache Manager | 8080 |
| FastAPI / Python 3.11 | ML Workers (Sentiment & Classification) | 8001, 8002, 8003 |
| RabbitMQ 3.13 | Task Broker & Dead-letter Management | 5672, Management: 15672 |
| Redis 7.2 | Execution Result Store & TTL Caching | 6379 |
| Docker | Orchestrator & Multi-agent scaling | - |
This project is licensed under the MIT License - see the LICENSE file for details.
Selected from shared topics, language and repository description—not editorial ratings.
Chaitanya5068 /
Production-grade distributed AI inference platform using AWS, Terraform, Docker, FastAPI, and private subnet worker architecture.
Deepak-Darshan /
Production-grade distributed task queue on AWS with AI-powered ops assistant. Python · FastAPI · SQS · DynamoDB · Claude API
Sanvith6 /
A production-grade, highly secure distributed AI inference platform on AWS. Provisions isolated private subnets via Terraform, automates configuration with Ansible, and implements a polyglot Python/TypeScript WebSocket RPC worker mesh behind Nginx. Includes an interactive web showcase.
enesdemir0 /
VisionMetric: A production-grade AI Image Captioning platform built with a Microservices Architecture. Features a distributed pipeline with Node.js, Python (FastAPI), TensorFlow, and Next.js. Orchestrated via Kubernetes (EKS/Kind) and provisioned with Terraform (IaC). Fully automated CI/CD via GitHub Actions.