System Design Atlas

Dispatch centre with changing incident information

06 / 10Worked example

The overall architecture

The map is a derived view. Which conditions preserve the authoritative assignment?

Position updates do not change unit allocation.

Starting point Withdrawal remains pending until matching evidence exists.

Assumptions for the example case

A fictional command exercise with no connection to real response units. Dispatch makes the decisions, supported by suggestions and maps. Availability and an accepted assignment remain separate facts. All quantities, thresholds and operational targets in this design are illustrative assumptions.

Map alongside the authoritative datastore

Map alongside the authoritative datastore

Dispatch interfaceauthenticated decision
Dispatch APISituation + assignment
Relational incident datastoreE-45 · Z-45 · Revision
Transmission workerSend assignment
Position adapterPosition-update stream
Map projectionPosition + age
Training radio gatewayExternal
Position sourceTraining data
Map interfaceRead path
Dispatch interface → Dispatch APIAssignment + revision
Dispatch API → Relational incident datastoreE-45 + Z-45
Relational incident datastore → Transmission workerCommitted assignment
Transmission worker → Training radio gatewayAssignment revision4
Training radio gateway → Dispatch APIAcknowledgement revision4
Position source → Position adapterPosition + Time
Position adapter → Map projectionCurrent read model
Map interface → Map projectionPosition with timestamp

Assignments and acknowledgements use the API and incident datastore; positions follow a separate timestamped read path.

API/datastore and transmission worker; a separate read path through position adapter and map projection; external gateway.

Responsibilities within the application

Modules inside the dispatch API

Situation managementVersions incident reports and location corrections
Availability viewShows state and freshness
AllocationAtomically allocates a unit
Acknowledgement reconciliationReconciles acceptance, rejection and completion
Lageführung → VerfügbarkeitsbildCurrent situation revision
Verfügbarkeitsbild → ZuteilungAvailable-unit revision
Zuteilung → QuittungsabgleichZ-45 revision4

Four responsibilities share the incident datastore within the same API process.

Internal modules: situation management versions incident reports and location corrections; the availability view shows state and freshness; assignment allocates a unit to an incident; acknowledgement reconciliation connects acceptance, rejection and completion. The architecture assigns these responsibilities to processes and datastores.

Runtime components and authoritative data

Runtime boundary
Dispatch interface → dispatch API → relational incident datastore. Transmission worker → external training radio gateway; responses → API and the same datastore. Position adapter → map projection; the map interface reads the projection with timestamps. Situation management and assignment are API modules, rather than separate deployments.
Module responsibilities
Situation management: versions incident reports and location corrections. Availability view: shows state and freshness. Assignment: allocates a unit to an incident. Acknowledgement reconciliation: connects acceptance, rejection and completion.

The map is a derived view.

The map is a derived view.

The API manages assignments; the projection provides the overview.

Position updates do not change unit allocation.

The API, transmission worker, and position adapter run separately. Situation management and allocation belong to the API; the relational data store maintains the assignment.

Alternative considered
Assigning from map state may use stale information.
Trade-off
The two views must be understandable.
Reassess
New map features do not change the decision contract.

Try it yourself

Separate processes and modules.

A hint for your attempt

Position updates do not change unit allocation.

Compare with a possible solution
Processes
The API, transmission worker and position adapter run separately.
Modules
Situation management and assignment belong to the API; the relational datastore maintains allocation.

Apply to your project

What is the equivalent of a derived map view in your project?

Step 7: exactly one assignment wins a unit. Which conditions enforce this rule?