Investment App architecture

Investment App architecture An architecture diagram generated by Archify. News sources · research + news · Architecture component News sources research + news Analysis · recs :8002 · Monorepo services › HMAC service calls Analysis recs :8002 Claude / Gemini · recommendations · Architecture component · Claude Claude / Gemini recommendations React SPA · Vite :5173 · Architecture component React SPA Vite :5173 Core BFF · auth + proxy :8000 · Monorepo services › HMAC service calls · JWT Core BFF auth + proxy :8000 JWT Portfolio · accounts :8003 · Monorepo services › HMAC service calls Portfolio accounts :8003 Market Data · quotes :8001 · Monorepo services › HMAC service calls Market Data quotes :8001 Market Data Source · quotes + history · Architecture component Market Data Source quotes + history PostgreSQL · shared · split-ready · Monorepo services · PostgreSQL PostgreSQL shared · split-ready Scraper · Playwright :8004 · Monorepo services › HMAC service calls Scraper Playwright :8004 Notifications · feed :8005 · Monorepo services › HMAC service calls Notifications feed :8005 Telegram · optional delivery · Architecture component Telegram optional delivery HTTPS API HTTP API HTTP API HTTPS API HTTP API HTTPS API HTTPS API HTTP API HTTP API Bot API SQL Monorepo services HMAC service calls Legend Frontend Backend Database External

Gateway

  • • Browser to Core is HTTPS API with a JWT
  • • Core to domain services is HMAC-signed HTTP API

Domain services

  • • Portfolio and Market Data talk over HTTP API
  • • Analysis calls news sources and LLMs over HTTPS API

Other channels

  • • PostgreSQL is SQL, not HTTP
  • • Telegram is Bot API
  • • No webhook callbacks in this topology