Skip to main content
← Back to list

Why VAZOOM has to be a real-time response system, not just an SOS button

How VAZOOM handles an emergency in real time Hello. We are the team designing the real-time emergency response system at VAZOOM. We do not see an emergency as simply "a feature that sends a signal." In a real service, what matters more is what happens after the button is pressed. The user's location can drift, who needs to receive it changes with the situation, and some channels can fail. In the end the question is not whether a report was received, but whether the signal reached the most appropriate recipients, in the shortest time, as resiliently as possible. So we defined this not as an SOS feature but as the problem of operating a real-time event session that stays alive for a short period. In this post we set out why we defined it that way, which architecture we chose, and what we separated out for operational stability. *An abstracted overview of the whole structure: an emergency starting in the mobile app, flowing through the real-time session core, asynchronous workers, storage and notification channels* Why handling an emergency is hard An emergency starts from different assumptions than an ordinary mobile feature. In everyday use, a service can expect the user to press the next button, check the screen again, and type in any further information needed. In an emergency, those assumptions collapse. The user may not be able to enter anything more, the app may drop to the background, and the location can drift fast indoors, underground or in motion. So the heart of an emergency response system is not the UI — it is the delivery structure. Who to send to first, how to calculate the radius, how to treat guardians differently from organisation-level recipients, and which path to take when a push fails: the system has to make those judgements on the user's behalf. Solving this with a simple API call almost always runs into a wall. A structure that stores one request and sends a push is simple, but in a real emergency it is vulnerable to delay and to failures spreading. Why the usual SOS approach fell short Many systems treat an emergency only as "an event that happened once." But what matters in a real service is how things change over the minutes that follow. There were three main limits. - The situation persists: the location can change right after the request, and the first recipient may not respond. - Recipients are decided dynamically: guardians, nearby users, particular role groups and organisation-level recipients differ from case to case. - The limits of synchronous processing: handling notification delivery and follow-up work inside the request path stretches both response time and the blast radius of a failure. In the end an emergency is less a problem of "storing an event" than a problem of real-time judgement, follow-up processing and state tracking. VAZOOM treats an emergency as a real-time event session At VAZOOM an emergency request is not simply a record that is created and finished with. From the moment the event is created we see it as a running session: it holds state for a period of time, corrects the location, calculates the appropriate recipients, tracks delivery results, and raises further alerts if needed. Change to that view and the centre of the system design changes too. First, the primary goal of an emergency request becomes immediate routing, not permanent storage. What is needed first is to decide quickly who should receive this event right now. Location also stops being a mere attribute and becomes a routing key. Storing coordinates is not enough. You have to look at how trustworthy the coordinates are, narrow the candidates within a radius, and apply role-based priority. In the end the heart of VAZOOM is not the button itself, but a structure in which the system runs everything after the button, through to the end. VAZOOM's system architecture VAZOOM's architecture divides into five layers. 1) Mobile app layer The user creates an emergency request in the app and sends their current location and state. The app is not a simple input tool — it is the starting point of the session and a client that receives the real-time state back. 2) Real-time session processing layer Behind the API Gateway, the core service handles request validation, location processing, event creation, recipient calculation and the immediate response. This layer's job is not to process everything, but to process only what has to be judged fastest. 3) Worker and queue layer Follow-up notifications, retries, timeouts and multi-channel delivery are handed to the asynchronous layer. This layer takes on the work that may be delayed but must not fail. 4) Storage layer Real-time state sits in an in-memory layer; the permanent history sits in a relational store. That separation is partly about performance, but more fundamentally about drawing a clear boundary of responsibility. 5) Notification delivery layer Push notifications, external channels and organisation-level integrations all fan out from this layer. What matters is not the number of channels, but the order and the policy by which delivery happens.