How keenztechnique/backend-sandbox works
This is a FastAPI task-submission and status service backed by PostgreSQL, with RabbitMQ-based asynchronous processing. A client submits a task; the API stores it and publishes a notification, while a worker consumes messages, processes them, and uses broker dead-letter routing for retries. Clients can separately query stored task status. The README is empty, so capabilities and relationships here are grounded in the sampled source; the publisher’s message format and the worker’s JSON parsing appear inconsistent.
Main entry points: main.py FastAPI Endpoints · worker.py Task Worker · database.py Async DB Sessions · models.py Task Model
Components 9
HTTP API
- FastAPI Endpoints
main.py - Task Schemas
main.py
Task Storage
- Async DB Sessions
database.py - Task Model
models.py
Message Processing
- Task Worker
worker.py
Logging
- Structured Logging
logger.py
Other components
- API Client
- PostgreSQL
- RabbitMQ
Connections 12
- API Client → FastAPI Endpoints: submits or queries
main.py - FastAPI Endpoints → Task Schemas: validates and returns
main.py - FastAPI Endpoints → Async DB Sessions: uses sessions
main.py - FastAPI Endpoints → Task Model: creates and queries
main.py - Task Model → Async DB Sessions: uses Base
models.py - Async DB Sessions → PostgreSQL: connects to
database.py - FastAPI Endpoints → RabbitMQ: publishes task
main.py - RabbitMQ → Task Worker: delivers messages
worker.py - Task Worker → RabbitMQ: acks or rejects
worker.py - Task Worker → RabbitMQ: configures retry routing
worker.py - FastAPI Endpoints → Structured Logging: configures and logs
main.py - Task Worker → Structured Logging: configures and logs
worker.py