System Architecture

A modern, scalable, microservices-based architecture powering the Margadarshak AI Platform.

Frontend Layer

Next.js 14React Three FiberTailwind CSSFramer MotionRechartsZustand

Backend Layer

FastAPIPython 3.11WebSocketREST APICelery TasksJWT Auth

AI & ML Layer

PyTorchYOLOv8 DetectionLSTM NetworksReinforcement LearningAnomaly DetectionTrafficGPT

Data Layer

PostgreSQLRedis CacheInfluxDBMinIO StorageKafka StreamsTimescaleDB

Infrastructure

DockerKubernetesRailway DeployNginxCDNLoad Balancer

IoT & Edge

Traffic CamerasRoad SensorsGPS TrackersVMS BoardsSignal ControllersEdge GPUs

Tech Stack

Next.jsTypeScriptPythonFastAPIPyTorchPostgreSQLRedisDockerKubernetesThree.jsTensorFlowKafkaWebSocketRESTGraphQLgRPCNginxGitHub Actions
< 50ms
Data Pipeline Latency
< 10ms
API Response Time
99.99%
System Uptime
10K+
Concurrent Users