Back to Projects

Emergency108 - Emergency Dispatch System

Zero-latency WebSocket tracking, 100-second auto-dispatch, 3 km responder radius

Enterprise-grade, real-time emergency dispatch platform built with Spring Boot, React 19, and Flutter, featuring an event-driven state machine architecture and geospatial routing. Delivered zero-latency live GPS streaming over STOMP WebSockets, automated nearest-ambulance and nearest-hospital routing using the Haversine formula, and a fault-tolerant backend. Implemented a Helping Hand community first-responder network (3 km radius), AI-powered first-aid triage, custom pure-Java rate limiting, and multi-stage Docker CI/CD across Render and Vercel.

Java 17Spring Boot 3.2.5Flutter 3.xReact 19TypeScriptTailwindCSS 4ViteMySQL 8 (Aiven)DockerWebSockets (STOMP/SockJS)Firebase Cloud MessagingGoogle Maps APIRenderVercelGitHub Actions

Project Screenshots

Emergency108 - Emergency Dispatch System screenshot 1
Emergency108 - Emergency Dispatch System screenshot 2

Problem

Emergency response workflows needed deterministic low-latency dispatch with live GPS visibility, strict lifecycle control, timeout-based reassignment, and immediate first-aid guidance without API polling delays.

Solution

Built a full-stack, fault-tolerant system: Flutter mobile app (citizens + drivers), React/TypeScript admin dashboard, and containerized Spring Boot backend on Render with Aiven MySQL. Integrated STOMP WebSockets for live telemetry, FCM push notifications for instant assignment/status alerts, and an AI-driven triage rule engine for medically conservative first-aid guidance.

Key Highlights

  • Zero-latency live ambulance GPS streaming via STOMP WebSockets (no HTTP polling)
  • 3-second SOS safety trigger with 100-second auto-dispatch countdown
  • Automated nearest-ambulance and nearest-hospital routing using Haversine distance
  • Helping Hand network notifies nearby citizens within a 3 km radius via FCM
  • State-machine-driven lifecycle enforcement with strict valid transition control
  • AI-powered first-aid triage engine for immediate medically conservative guidance
  • Background schedulers for timeout handling, auto-reassignment, and startup crash recovery
  • Custom pure-Java fixed-window rate limiting and OTP-based JWT authentication
  • Prometheus metrics and non-blocking domain event auditing for observability
  • Google Maps-based tracking with mission completion proximity validation (<100 m)
  • Multi-stage Docker builds with automated GitHub Actions CI/CD across all 3 repositories