Livoa LogoLivoa
MaastrichtDepRisk - Current Architecture
Frontend: Vercel (Next.js)  •  Backend: Render (Dockerized FastAPI)  •  CI/CD: GitHub
User Browser


React UI in Next.js

Vercel (Next.js Frontend)


Pages + Forms, optional API proxy

Env: MODEL_API_URL, API_KEY

Render (Dockerized FastAPI)


App, loads ML model

Exposes /score JSON endpoint (HTTPS)

Optional Services


Redis cache / Postgres

Celery workers

GitHub Repo


Push → CI/CD triggers builds

• Vercel (frontend) • Render (backend container)

Model Artifact


XGBoost / Pickle (loaded at startup)

Monitoring / Logs (Optional)
Legend / Notes


Flow: User → Vercel (Next.js) → Render (FastAPI) → Model

Secrets/env: Next.js uses MODEL_API_URL (and optional API_KEY) to reach backend over HTTPS

CI/CD: GitHub pushes trigger Vercel build; Render builds and deploys the Docker image

Optional: Redis/Postgres/Celery for caching, persistence, background jobs; centralized logging/monitoring

HTTPS

HTTPS JSON • POST /score

Load at startup
Logs / Metrics
Build & deploy
Build image & deploy

Diagram

by Max

0
0 uses