PON — Kiến trúc runtime (bản triển khai Mac Mini)

PON — Kiến trúc runtime (bản triển khai Mac Mini) An architecture diagram generated by Archify. Web + Mobile · Next.js (Vercel) · Flutter · Thiết bị người dùng Web + Mobile Next.js (Vercel) · Flutter Cloudflare edge · TLS termination · Cloudflare Cloudflare edge TLS termination cloudflared · tunnel, dial-out · Mac Mini · Docker app-net cloudflared tunnel, dial-out Caddy · ingress duy nhất · Mac Mini · Docker app-net › chỉ vào qua Caddy · không publish port Caddy ingress duy nhất chat-service · Spring Boot · STOMP · Mac Mini · Docker app-net › chỉ vào qua Caddy · không publish port chat-service Spring Boot · STOMP RabbitMQ · ai.requests · TTL 30s · Mac Mini · Docker app-net › chỉ vào qua Caddy · không publish port RabbitMQ ai.requests · TTL 30s ai-service · NestJS · agentic loop · Mac Mini · Docker app-net › chỉ vào qua Caddy · không publish port ai-service NestJS · agentic loop LLM + embedding APIs · Anthropic · OpenRouter · Voyage · Architecture component LLM + embedding APIs Anthropic · OpenRouter · Voyage Upstash Redis · ai:response:{id} pub/sub · Upstash (managed) Upstash Redis ai:response:{id} pub/sub LiveKit Cloud · FCM · media call · push · Architecture component LiveKit Cloud · FCM media call · push auth-service · JWT · RBAC · 2FA · Mac Mini · Docker app-net › chỉ vào qua Caddy · không publish port auth-service JWT · RBAC · 2FA Qdrant · vector · không port · Mac Mini · Docker app-net › chỉ vào qua Caddy · không publish port Qdrant vector · không port connector-service · MCP · vault AES-GCM · Mac Mini · Docker app-net › chỉ vào qua Caddy · không publish port connector-service MCP · vault AES-GCM Notion · Google · OAuth · MCP / REST · Architecture component Notion · Google OAuth · MCP / REST MongoDB Atlas · db platform · users · messages · vault · Atlas (managed) MongoDB Atlas db platform · users · messages · vault HTTPS · WSS tunnel HTTP :80 REST, /ws publish consume stream LLM PUBLISH chunk SUBSCRIBE → STOMP /api/auth users · roles messages · GridFS RAG search /internal/tools gọi tool token đã mã hoá token · push Thiết bị người dùng Cloudflare Mac Mini · Docker app-net chỉ vào qua Caddy · không publish port Upstash (managed) Atlas (managed) Legend Frontend Backend Database Cloud Security Message bus External