System Architecture
A modern, scalable, microservices-based architecture powering the Margadarshak AI Platform.
Frontend Layer
Next.js 14React Three FiberTailwind CSSFramer MotionRechartsZustand
1
Backend Layer
FastAPIPython 3.11WebSocketREST APICelery TasksJWT Auth
2
AI & ML Layer
PyTorchYOLOv8 DetectionLSTM NetworksReinforcement LearningAnomaly DetectionTrafficGPT
3
Data Layer
PostgreSQLRedis CacheInfluxDBMinIO StorageKafka StreamsTimescaleDB
4
Infrastructure
DockerKubernetesRailway DeployNginxCDNLoad Balancer
5
IoT & Edge
Traffic CamerasRoad SensorsGPS TrackersVMS BoardsSignal ControllersEdge GPUs
6
Tech Stack
Next.jsTypeScriptPythonFastAPIPyTorchPostgreSQLRedisDockerKubernetesThree.jsTensorFlowKafkaWebSocketRESTGraphQLgRPCNginxGitHub Actions
< 50ms
Data Pipeline Latency
< 10ms
API Response Time
99.99%
System Uptime
10K+
Concurrent Users