Skip to content

Backend Services Overview

singh-yash129 edited this page Apr 19, 2026 · 1 revision

Backend Services Overview

Purpose

Cargo-Core backend provides secure APIs, role enforcement, workflow orchestration, asynchronous processing, and integration endpoints across the logistics lifecycle.

Service Responsibilities

  • Authentication and token lifecycle management.
  • RBAC authorization across all role modules.
  • Order, dispatch, warehouse, and support domain coordination.
  • Background task execution for long-running operations.
  • Event logging, monitoring hooks, and operational consistency.

Platform Components

  • FastAPI service on Uvicorn.
  • PostgreSQL with async SQLAlchemy access.
  • Redis-backed cache and queue channels.
  • Celery workers for asynchronous workloads.
  • Alembic migration chain for schema governance.

Production Engineering Priorities

  • Stable API contracts with versioned evolution.
  • Idempotent workflows for retry-safe operations.
  • Queue observability and failure handling.
  • Security-first access patterns and operational auditability.

Clone this wiki locally