Appearance
Batch Ingestion
Overview
Batch Ingestion is the OR configuration-driven data loader for slow-moving reference and geospatial datasets. While the real-time pipeline handles live sensor feeds and streaming data, Batch Ingestion manages the periodic update of static assets — traffic signal locations, road features, device registries, and geospatial reference data — that form the foundational layer OR operates on. These datasets change infrequently (daily, weekly, or monthly) but must be kept current and correctly structured for consumption by the rest of OR.
The service operates in two modes: as a CRON-controlled automated loader that runs on a pre-defined schedule without human intervention, and as a live microservice for ad-hoc data loading during development or initial deployment. It collects data from multiple sources — client-provided APIs, flat files stored in cloud storage, and open data hubs — and transforms it into OR-compliant structures before loading into the reference datastore.
Batch Ingestion is controlled through a digraph configuration file that defines the data pipeline for each source. Each source has its own schedule, transformation logic, and target tables, making the service highly extensible for new data types without code changes.
Architecture
The service operates on automated schedules, executing data loading jobs at configured intervals. It integrates with OR central datastore and cloud storage systems.
Key Components
- Configuration-Driven Pipeline — Each data source is defined through declarative configuration that specifies source location, transformation logic, target destinations, and scheduling parametres. The configuration structure allows complex multi-step ingestion pipelines.
- Automated Scheduling — Data loading jobs run automatically at configured intervals without manual intervention. Each data source operates on its own schedule (daily, weekly, etc.).
- Manual Trigger API — Provides an interface for ad-hoc data loading during development and initial deployment.
- Data Transformation — Raw source data is transformed into OR standardised schema before being committed to the reference database.
Connections
| Direction | Service | Purpose |
|---|---|---|
| In | Client APIs | External APIs for device and asset data |
| In | Cloud Storage | Flat files for reference data |
| In | Open Data Hub | Open geospatial datasets |
| Out | Reference Database | Target reference datastore |
| Out | Central Orchestration Service | API integration for manual triggers |
Data Flow
The service collects data from multiple external sources (client APIs, flat files, and open data hubs), transforms it into OR standardised format, and loads it into the reference database where it becomes available to all services including the real-time pipeline, frontend, and spatial services.
Ingested Data Sources
Batch Ingestion manages reference data across multiple categories:
Traffic Management Infrastructure
Traffic signal controllers, traffic detectors, variable message signs, and other intelligent transport system devices. These reference datasets provide location, configuration, and attribution data for devices that generate live operational data.
Road Network Features
Road geometry, intersection definitions, height restrictions, parking zones, turn restrictions, and other static road network attributes. This reference data enables spatial operations and provides the geographic context for real-time traffic data.
Specialized Equipment
Camera locations, weather stations, drainage infrastructure, and other monitoring or management assets. Reference data includes location, coverage areas, and operational parametres.
INFO
Live data for these sources is handled by the real-time ingestion pipeline (Data Ingestion, Data Stream Ingestion), not Batch Ingestion. Batch Ingestion only manages the static reference and geospatial attributes.
Device-to-Network Mapping
The service includes specialized mapping capabilities that assign devices to road network segments, ensuring accurate geographic relationships between infrastructure assets and the underlying road network. These mappings enable spatial queries and support operational workflows that need to understand which devices monitor or control specific road segments.
Manual Trigger
For development, testing, or initial deployment, Batch Ingestion can be triggered manually through OR API. Contact your administrator for API access details and available data sources.
In production, Batch Ingestion runs automatically on its configured schedule.
Operational Monitoring
The service provides monitoring capabilities for tracking ingestion job status and database health. Contact your administrator if you experience issues with scheduled data updates or need to trigger manual data loads.
Related Services
- Data Ingestion — Handles live/real-time data ingestion; Batch Ingestion handles the complementary static reference data
- Data Stream Ingestion — Streaming data counterpart for continuous feeds
- Data Loader — Loads initial reference data on stack spin-up; Batch Ingestion handles ongoing updates
- Data Recorder — Writes live data snapshots; can conflict with Batch Ingestion during FK-constrained updates
- Experiment Manager — Central coordination service providing the API for manual batch triggers
- Post Monitoring — Downstream consumer of reference data via Redshift ETL
- Data Exporter — Exports data that depends on correctly ingested reference datasets
