How oasislmf/oasisplatform works
Project Type and Purpose
• This is a full-stack, back-end-only application comprising:
– A Django REST API server (with Django ORM, migrations, multiple app modules, v1/v2 REST endpoints)
– A Celery‐based model execution worker handling asynchronous model runs
– A RabbitMQ (AMQP) message broker connecting the server and worker
– Persistent storage (MySQL/PostgreSQL + file store/S3) for data and model artifacts
– External services: Keycloak (OIDC), file storage (S3 or NFS), monitoring stack
– CI/CD pipelines and containerized deployments via Docker Compose and Kubernetes Helm charts
1. Client → Ingress (HTTP/HTTPS) → API Server
2. API Server ↔ Keycloak (OIDC/JWT)
3. API Server → Database (SQL queries)
4. API Server → File Store (S3 API or FS)
5. API Server → RabbitMQ (AMQP “task” messages)
6. Celery Worker ← RabbitMQ (consume tasks) → File Store (read model inputs, write outputs) → Database (update task/analysis records)
7. Worker‐Controller ↔ RabbitMQ / API Server (queue status) → Kubernetes API (scale worker Deployment)
8. Prometheus scrapes metrics from API Server, Celery, RabbitMQ; Grafana renders dashboards; Flower provides Celery UI
Architectural Patterns and Principles
• Microservices / decoupled services (API vs. worker)
• Event‐driven, asynchronous processing via Celery + AMQP
• 12-Factor app principles (separate config, backing services)
• Helm chart driven, GitOps‐friendly K8s deployments
• CI/CD pipelines automate image builds, tests, vulnerability scans
Detail Level
• Per-microservice config sources (e.g., Celery conf v1/v2, Django settings v1/v2) only if the audience needs to understand version branches
• Migrations step for Django (manage.py migrate) as a one-time DB preparation task
• CI/CD pipelines as a side pool feeding Docker Hub and triggering Helm releases