Skip to content

Data Loader ​

Overview ​

Data Loader is responsible for populating the OR reference databases with the static and reference data that underpins all real-time operations. Before any live data can be ingested, transformed, or displayed, OR needs a foundation of geographic, device, and configuration data — maps, road segments, traffic signal locations, public transport routes, user accounts, and baseline metrics. Data Loader builds this foundation.

The service runs on stack startup or when reference data updates are required. It connects to secure cloud storage that serves as the landing zone for static files, fetches the configured datasets, processes them through source-specific loading pipelines, and populates the reference database with correctly structured data. This data then feeds into every downstream service — from Data Transformer (which uses it for spatial tagging) to the frontend (which uses it for map rendering).

Data can arrive in the cloud storage landing zone through several paths: pushed from the client side with authenticated secure transfer, pulled from OR side via a custom data pipeline, or manually uploaded by the Optimal Reality support team on an ad-hoc basis.

Architecture ​

The Data Loader service operates as a dedicated data management system that coordinates the loading of reference datasets into OR databases. It follows a configuration-driven approach that enables flexible management of data sources and loading sequences.

Key Capabilities ​

  • Configuration-driven loading — A configuration file defines which datasets to load, their cloud storage locations, fetch methods, and load order. The configuration is read on startup and can be updated to modify loading behaviour without code changes.
  • Fetch and Load pipeline — Each data source follows a two-step process:
    1. Fetch: Download data from cloud storage or other sources and prepare it for processing
    2. Load: Insert the processed data into the relevant database tables
  • Dependency management — Load functions can declare dependencies on other load functions, ensuring correct execution order (e.g. segments must be loaded before map data).
  • Platform integration — Integrates with the central orchestration service for coordination and to verify database readiness.

Dependencies ​

The service requires several components to be operational:

  • Central orchestration service
  • Primary reference database
  • Simulation database
  • Data cache

Data Flow ​

Cloud storage serves as the landing zone for static files. The Data Loader service fetches configured datasets, resolves dependencies between load functions, and populates database tables with reference data. This reference data then becomes available to all downstream services through the central orchestration layer.

Data Sources ​

Data Loader manages multiple categories of reference datasets:

  • Geographic Data — Road network structure, segment definitions, and spatial reference information
  • Infrastructure Assets — Device locations, equipment configurations, and operational parametres
  • Operational Baselines — Historical metrics and baseline patterns for comparison
  • Platform Configuration — User accounts, roles, and system settings
  • Model Reference Data — Network topology, routing information, and scenario parametres

Configuration ​

Data Loader uses a configuration-driven approach where each data source specifies its location, loading method, and dependencies. This configuration structure enables operational teams to manage data source definitions without code changes, making it straightforward to add new reference datasets or update existing ones as requirements evolve. The system automatically resolves dependencies to ensure data is loaded in the correct order.

Using Data Loader ​

Data Loader can be triggered through OR operational workflows for initial stack deployment or when reference data updates are required. The service automatically:

  1. Loads configuration — Reads data source definitions and determines the correct load order based on dependencies
  2. Fetches datasets — Downloads configured datasets from cloud storage or other sources
  3. Populates database — Loads data into database tables in dependency order
  4. Validates completion — Verifies that all required datasets have been loaded successfully

The service supports loading all configured datasets in a single operation, or loading specific datasets individually when needed. This flexibility enables both complete stack initialization and incremental updates to individual reference data sources.

For operational guidance on triggering data loads or managing data source configurations, consult your administrator or support team.

Operational Notes ​

Reference data updates follow dependency-aware sequencing to maintain database integrity. Map updates require coordination across environments to ensure consistency. For operational guidance on triggering data loads or managing reference data updates, consult your administrator or support team.

  • Data Transformer — Uses loaded reference data for spatial tagging and transformation
  • Data Fusion — Depends on hex and segment data loaded by Data Loader
  • Data Archiver — Archives data from tables that Data Loader initially populates
  • Experiment Manager — Central orchestration service

User documentation for Optimal Reality