Back to projects
Project overview
CasaTwin - Distributed Digital Twin for Traffic Management
A distributed digital twin solution designed to simulate, monitor and manage Casablanca's traffic in real-time using a hybrid 4-node architecture with Kafka, Spark, and React visualization.

Highlights
- 01Distributed Architecture: 4 specialized physical nodes connected via VPN
- 02Real-Time Simulation: 8,000 taxis and 300 police units with realistic navigation
- 03Smart Traffic Management: 70 synchronized traffic lights with variable timing
- 04High Performance: 10,000+ events/sec processing with Redis caching
- 05Digital Twin: Real-time visualization of urban traffic flows
- 06Infraction Detection: Automatic detection of speeding and traffic violations
Technology stack
KafkaSpark StreamingSpark MLRedisMongoDBHDFSReactFastAPIWebSocketMySQL