SmartGare
Architecture

System architecture

User surfaces, station services, the station bridge, data services, hardware boundaries, and the station-local deployment model.

Logical system view

The diagram shows logical boundaries. It does not claim every optional hardware or display component is already shipped.

Deployment boundary

Each station receives one isolated deployment. There is no cross-station tenant column in the business model. A future central view consumes published station contracts from outside rather than adding tenancy to every record.

Ownership boundary

One module owns each durable fact and its schema. A projection may mirror a fact but never becomes an alternate writer.

Three records may describe the same service without becoming one lifecycle:

  • traffic owns what the station announced;
  • traffic also owns the vehicle and bay commitments, as a separate record;
  • cycle owns what the station observed.

Hardware boundary

The station bridge is how SmartGare talks to any hardware. It is part of the smartgare-services repository but runs as its own application, deployed at the station. The backend reaches a device only through the bridge, over the network; the bridge never runs inside the backend. No protocol or vendor detail exists outside the bridge, so the back-office and every business module know nothing about how a device speaks.

The bridge has three parts:

  • Contract — the device words and the messages exchanged with the bridge.
  • Client — the network client the backend uses. It applies time limits, caps the questions in flight, and treats an unreachable bridge as an answer.
  • Station application — simulators, vendor adapters, and the HTTP server deployed at the station.

A backend module may depend on the contract and the client, never on the station application. Device work belongs to the module that owns its facts:

  • cycle opens lane barriers, sets keypad codes, and reads plate, tag, and code-entry observations;
  • siv draws display panels and the hall departures board;
  • referential owns station equipment: device statuses, printer settings, and test labels.

Every device class ships a simulator first. No vendor adapter is certified against physical hardware yet; certified adapters are planned.

Business modules depend on vendor-neutral ports for cameras, readers, barriers, intercoms, gates, printers, and payment terminals.

  • Referential stores durable capability placement.
  • The bridge's adapter configuration stores protocols, addresses, and credentials.
  • Operational modules store observations, commands, acknowledgements, and health.
  • A device acknowledgement is not proof of physical passage.

On this page