Merged platform: interactive detailed architecture, online and offline
Merged platform, online and offline: every service, and what flows between them
Two agency accounts, the region's account and its readers; every service of both use cases drawn once with its role and the path it serves; every connection labelled with what flows on it.
TTC · its own AWS account · the neighbour: its feed is read, its control room hears
MiWay · its own AWS account · the full sharer: one adapter, one Bronze and Silver, both paths
Bronze and Silver · both paths
Gold · what each contract names
Planned
The region · the exchange's AWS account
Watch · both paths
Find · online: rules, and expected against seen
Costed upgrade
Tell and serve · alerts online, reports offline, one front door
Archive and arrivals · archive both, arrivals offline
Totals in · offline
Leaving · both
Shared parts · once, for both
Readers at the region
positions, public, every 10 s
Parquet
raw feed
arrivals
registers
shared stop ids
read in place, by grant: TTC arrivals on shared stop ids, plus the stop crosswalk
decrypt, by revocable grant
a party left; key revoked
delete, expire
nightly CSV
raw rows, three exports
TIDES rows: visits, trips, taps
taps + from
arrival times
counts, waits
encrypts
02:00
02:30
the nightly file: SSE-KMS with MiWay's key, by 06:00, rows under 5 cards already dropped
new file
file, agency
accepted
rejected + why
rows appended
SQL over Iceberg
results
JSON: transfer matrix, waits, crossing points
JSON: connection times
sign-in token
allow or deny
contract terms
shared stop ids
audit event
MiWay's public feeds, the same way
planned
5-minute loads: counts, no rider
positions
heartbeat
timetables, when they change
all records
positions and loads, first reader
the same records, second reader
last state
scheduled times
delay, load
a value per 5 min
band broken
upgrade
forecast missed: an anomaly
a rule fired: the vehicle and the reason
who is affected
totals, nightly
grant: MiWay's rows readable while it stands
alert
every alert
open alerts
by receiver
not taken
alert to the agency it happened at: kind, where, since, expected and seen
alert to the neighbour: affects MiWay
alert
alert
live alert feed, JSON
delivery failing
poller silent
page
delete alarms, bands
delete its vehicles
delete its part, expire snapshots
which feeds to poll
shared stop ids
audit event: who read which report or alert
encrypts lane, archive, alert log
AVL and APC exports
stop visits, as written
both paths GTFS-Realtime feeds TTC's public positions, trip updates and alerts, refreshed every 10 s
offline PRESTO fare export nightly CSV of taps card id stays in this account
both paths S3 · raw landing AVL, APC and fare exports as they arrive kept three years; never leave
both paths Glue ETL · the adapter, batch exports to TIDES stop_visits, trips, fare_transactions; card id hashed or Databricks, same Iceberg files
both paths S3 + Iceberg · TIDES tables stop visits, trips and fare taps: one Silver both paths read
offline Glue ETL · count and time transfers by from-operator, route, band; distinct hashed cards; waits or Databricks, same Iceberg files
offline S3 · nightly totals rows under 5 cards dropped encrypted with MiWay's key
both paths KMS · MiWay's key on its totals, its inbox files and its rows at the region; one grant
offline EventBridge Scheduler runs the jobs at 02:00 after the export lands or Databricks Workflows
offline Athena · read arrivals TTC buses at MiWay stops queried in place, no copy or Databricks, same Iceberg files
both paths ECS on Fargate · poller reads every open feed every 10 s into the lane; timetables on change
both paths Data Firehose · archive batches the lane into Parquet: positions and trip updates, as polled
both paths S3 + Iceberg · feed archive Bronze as polled; Silver TIDES vehicle_locations derived from it
offline Glue ETL · derive arrivals positions to arrivals at each stop, on shared stop ids or Databricks, same Iceberg files
offline S3 + Iceberg · public arrivals one row per bus per stop; plus the stop crosswalk
offline Catalog + Lake Formation table definitions and cross- account grants, per contract or Unity Catalog, Delta Sharing
offline S3 · inbox one folder per agency; files stay under the agency's key
offline EventBridge · file arrived one event per new file routes to the check
offline Lambda · contract check shape, deadline, privacy rule, signed by the right key?
offline Glue ETL · add up 06:30, with what has landed; a missing agency shows as unknown or Databricks, same Iceberg files
both paths Step Functions · off-boarding one job: stops polling; deletes rows, alarms, state, archive part; rebuilds
offline SQS · rejected files held with the reason agency notified
both paths S3 + Iceberg · regional transfer table from-party × to-agency × band; each agency's rows under its key; both read
offline Athena · queries planners' questions SQL over Iceberg or Databricks SQL
both paths API Gateway · one front door report API and live alert feed; JSON, cached, WAF in front
both paths Cognito · sign-in agency staff, control rooms, apps federated identities
both paths Verified Permissions agreements compiled to policy: allow or deny per request, both APIs
both paths Aurora · registry parties, feeds, both contracts, operator names, shared stop ids
both paths CloudTrail + Object Lock every read and write, reports and alerts alike; written once
both paths CloudWatch · monitoring file late by 06:00, poller silent, delivery stuck: pages the on-call
both paths KMS · region's keys registry, audit, lane, archive, alert log, the region's own tables
offline Regional planners transfer matrix, waits, crossing points
offline Journey view cross-agency trip planner connection times
online Passenger counters boardings and alightings per stop the AVL and APC exports
online Lambda · the adapter, stream 5-minute loads per route and stop from the same Silver; counts, no rider
online EventBridge · TTC's bus alerts arrive here TTC routes them as it likes
online TTC control room its own feed and vehicles first, then what neighbours cause
both paths GTFS-Realtime feeds MiWay's, polled the same way; every registered party's are
online EventBridge · MiWay's bus alerts arrive here MiWay routes them as it likes
online MiWay control room hears a TTC delay that breaks its connections
online Weather and events forecasts, event calendars to label an alert: snow, a game planned · not sourced, not costed
both paths Kinesis Data Streams · live lane positions and loads, in order; 24 hours, region's key
both paths CloudWatch alarm · heartbeat poller silent for a minute? then we are blind, not the feed
online Lambda · rules feed gap, frozen, jump, dead counter; loads late or off-contract
online DynamoDB · last state per vehicle: place, time, counter written once per 5 minutes
online Lambda · delay and load matches each vehicle to its timetable; one value per route per 5 min
online S3 · timetables every party's published GTFS the yardstick for delay
online CloudWatch · metrics 1,680 series: delay and load per route and direction
online CloudWatch anomaly detection an expected band per series; alarm after 2 windows outside or Chronos, the upgrade below
online SageMaker · Chronos pre-trained forecaster; a large miss between forecast and seen is an anomaly upgrade · costed, about $2.4k a year more
online EventBridge · alert bus one event per alert routes by receiver
online SNS · delivery one topic per receiver retries for an hour
online SQS · undelivered alerts a receiver did not take held 14 days, replayable
online Lambda · build the alert kind, party, where, since, expected and seen, who is affected
online DynamoDB · alert log every alert, open or cleared kept 13 months
online DynamoDB · who is affected shared stops joined to transfer totals rebuilt nightly with Athena
both paths Region's on-call told when the system itself fails: a dead poller, a late file, a stuck alert
online Regional views disruption map, journey view, planners
crosses an account border data inside one account control: schedules, heartbeat, sign-in, rules, audit, keys, leaving orange: planned and not costed, a costed upgrade, or could be Databricks both paths online offline A proposal: decisions 62 to 65, proposed. Services are recommendations, not settled. Names are illustrative; no agency has agreed to anything.
Hover a component to see what it sends and receives. Each box carries the path it serves: both, online (anomaly detection ) or offline (transfer analysis).