Delivered remotely for a business based in Madrid, Spain. Names withheld by agreement.
Project Overview
Public-safety command centers operate under relentless time pressure when emergency callers cannot clearly describe where they are or what is unfolding around them. Traditional voice-only dispatch forces operators to spend precious minutes extracting street names and assessing threat severity verbally while responder units wait for actionable coordinates.
This platform bridges mobile distress reporting with live visual situational awareness across Android, iOS, and Web operations desks. Built on Laravel, PHP, and PostgreSQL with Redis real-time coordination, the system ingests live video streams and continuous GPS coordinates from companion mobile applications into a responsive Blade, JavaScript, jQuery, and Bootstrap command console designed for continuous multi-monitor dispatch shifts.
Business Bottleneck
Emergency monitoring centers and adjacent consumer-safety services needed to overcome three structural hurdles:
- Blind dispatch handoffs: Operators relied solely on voice calls or static coordinates, delaying accurate triage when callers moved or lost verbal clarity.
- Console bottlenecks during concurrent incidents: Refresh-heavy admin panels stalled or created assignment collisions when multiple dispatchers viewed incoming alerts at once.
- Fragmented mobile and command workflows: Consumer safety alerts and professional field-response operations ran on separate tools, duplicating maintenance and obscuring situational handovers.
Architectural Strategy
The architecture anchors all incident truth inside a centralized Laravel backend backed by PostgreSQL and Redis, exposing versioned REST endpoints to the Android and iOS clients while rendering the operator command center via Blade and Bootstrap. Splitting real-time signaling into Redis keeps high-frequency location updates and alert dispatches decoupled from slower relational reporting queries.
On the operator workstation, JavaScript and jQuery orchestrate split-screen situational views: an active alert triage rail, live geospatial unit maps, multi-tile video playback, and structured incident logs. Role-based access policies inside Laravel cleanly separate public-safety agency tenants, shift supervisors, and consumer-tier monitoring queues within the same core infrastructure.
Core Capabilities
- Live Triage & Video Monitoring Desk: Multi-pane Bootstrap console enabling dispatchers to watch concurrent incoming SOS video streams alongside real-time caller telemetry.
- Geospatial Unit & Jurisdiction Routing: PostgreSQL spatial matching that pins incoming alerts to coverage zones and highlights the nearest available field responders.
- Atomic Incident Claiming: One-click operator assignment backed by Redis locks so alerts cannot be double-handled or dropped between shift handovers.
- Dual-Tier Mobile Ingestion: Unified API layer supporting both agency field apps and an adjacent consumer personal-safety app with configurable escalation routing.
- Chain-of-Custody Audit Trail: Chronological, tamper-evident incident timelines capturing every status change, responder dispatch, video snapshot, and supervisor annotation.
Technical Architecture
Mobile clients initiate alerts and stream media upward while Laravel coordinates PostgreSQL persistence and Redis real-time broadcast to active dispatcher consoles.
Flow: Mobile App (Android / iOS) -> Laravel API Gateway -> PostgreSQL Incident Ledger + Redis Pub/Sub -> Blade / Bootstrap Command Console (JavaScript + jQuery) -> Live Video & Map Triage.
Every incoming GPS coordinate updates the incident's current position in Redis for immediate map-marker movement on operator screens, while batched coordinate trails persist into PostgreSQL for post-incident playback and compliance reporting.
Technology Stack
| Category | Technology Detail |
|---|---|
| Backend & API Core | Laravel (PHP) coordinating incident lifecycles, mobile APIs, and RBAC |
| Command Console UI | Blade server templates styled with Bootstrap for multi-pane dispatch desks |
| Live Console Scripting | JavaScript and jQuery managing map pins, alert queues, and video panes |
| Primary Database | PostgreSQL with geospatial indexing for incidents, units, and audit trails |
| Event & State Broker | Redis powering pub/sub incident alerts, responder presence, and locks |
| Mobile Endpoints | Companion Android and iOS clients streaming alerts, audio, video, and GPS |
| Video Ingest & Playback | Low-latency stream routing into dispatcher monitoring tiles and archives |
| Audit & Evidence Log | Append-only PostgreSQL event history capturing every dispatcher action |
Engineering Trade-offs & Solutions
| Architectural Dilemma | Chosen Solution & Rationale |
|---|---|
| Full SPA rewrite vs. Blade + Bootstrap + modular JS | Retained Blade and Bootstrap for rapid keyboard-friendly operator views while using targeted JavaScript and jQuery for live map, queue, and video DOM updates. |
| Writing every GPS ping directly to SQL vs. Redis buffering | Streamed live coordinates through Redis pub/sub for zero-lag map rendering and flushed consolidated path arrays to PostgreSQL to protect disk I/O during mass events. |
| Separate codebases for consumer vs. agency backends | Unified mobile ingestion in Laravel behind tenant and policy boundaries, reusing core media and telemetry pipelines while strictly isolating agency dispatch data. |
| Shared row updates vs. Redis claim locks | Enforced atomic Redis assignment locks before transitioning an incident's PostgreSQL status, guaranteeing single-dispatcher ownership during peak alert bursts. |
Security & Reliability
Public-safety operations handle protected citizen video, live residential coordinates, and agency responder movements. All mobile-to-API traffic runs over encrypted channels using scoped authentication tokens, while command-center access enforces strict role-based permissions, IP allowlisting options, and automatic session lockouts for unattended terminals.
PostgreSQL stores incident logs and evidence metadata inside append-only audit tables; even privileged administrators cannot silently alter recorded timestamps or delete closed case trails. Video playback links issued to the Bootstrap console are short-lived and bound to authenticated operator sessions, ensuring sensitive footage never leaks via static URLs.
Performance & Scale
During severe weather, civic gatherings, or regional emergencies, alert volume spikes abruptly across multiple districts at once. Redis absorbs high-frequency responder heartbeats and incoming SOS broadcasts in memory, keeping PostgreSQL focused on durable incident creation, spatial queries, and audit writes.
Console views paginate historical archives lazily while keeping only active incidents subscribed to live DOM updates in JavaScript. Background Laravel workers handle heavy post-incident video transcoding, thumbnail extraction, and compliance PDF exports on isolated queues so dispatcher triage latency remains unaffected.
Operational Outcomes
Integrating live mobile video, spatial telemetry, and atomic triage into a single Laravel, PostgreSQL, and Redis command center transformed how dispatchers assess incoming emergencies. Operators gain immediate visual verification alongside exact caller locations before units arrive on scene, while supervisors rely on clean chain-of-custody logs across every shift handover. Simultaneously, unifying the ingestion layer allowed the adjacent consumer personal-safety application to share proven alerting reliability without duplicating backend engineering.