Skip to content

Tech Choice Comparisons ​

1. Real-Time Transport: Socket.io vs Raw WebSockets vs Server-Sent Events (SSE) vs Long Polling ​

CriteriaSocket.io (Chosen)Raw WebSockets (ws)Server-Sent EventsLong Polling
Bidirectional TrafficYes (Full Duplex)Yes (Full Duplex)No (Server -> Client only)Simulated
Automatic ReconnectionBuilt-in with backoffManual implementationBuilt-inManual
Room & Namespace MultiplexingBuilt-in APIManual mappingNoneNone
HTTP FallbackYes (Long polling fallback)NoneNoneNative HTTP

Why Chosen: Socket.io provides automatic reconnection, built-in room abstractions for dispatching events to specific users, and fallback transports for unreliable mobile networks.

2. Geospatial Mapping API: Google Maps Platform vs Mapbox vs OpenStreetMap / Leaflet ​

CriteriaGoogle Maps (Chosen)MapboxOpenStreetMap / Leaflet
Address Search AccuracyUnrivaled global place indexGoodVariable by region
Distance Matrix Live TrafficHighly accurate live trafficGoodRequires OSRM server
Integration OverheadOfficial React componentsCustom GL wrappersOpen source wrappers
Cost Profile$5.00 / 1000 requests$5.00 / 1000 requestsFree self-hosted

Why Chosen: Ride-hailing requires hyper-accurate street-level geocoding and live traffic-adjusted travel time matrices, where Google Maps remains the industry standard.