Transfer analysis: interactive detailed architecture
Transfer analysis: every service, and what flows between them
Three AWS accounts and the readers; every service with its role, every connection labelled with what flows on it.
TTC · its own AWS account
MiWay · its own AWS account · the tap we follow
Bronze · raw files land
Silver · standard tables
Gold · what the contract names
The region · the exchange's AWS account
Public feeds in
Totals in
Serve
Shared parts · costed in every use case
Readers
positions, public, every 10 s
positions
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
notice; key revoked
delete, expire
nightly CSV
raw rows
TIDES 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
GTFS-Realtime feed public vehicle positions updated every 10 s
PRESTO fare export nightly CSV of taps card id stays in this account
S3 · raw landing vendor files as they arrive kept three years
Glue ETL · translate vendor columns to TIDES; card id hashed, kept at home or Databricks, same Iceberg files
S3 + Iceberg · TIDES tables stop visits and fare taps never leave this account
Glue ETL · count and time transfers by from-operator, route, band; distinct hashed cards; waits or Databricks, same Iceberg files
S3 · nightly totals rows under 5 cards dropped encrypted with MiWay's key
KMS · MiWay's key region holds a revocable grant revoke it: rows go dark
EventBridge Scheduler runs the jobs at 02:00 after the export lands or Databricks Workflows
Athena · read arrivals TTC buses at MiWay stops queried in place, no copy or Databricks, same Iceberg files
ECS on Fargate · poller reads every open feed every 10 s
Data Firehose · archive batches positions writes Parquet
S3 + Iceberg · feed archive raw positions and trip updates, as polled
Glue ETL · derive arrivals positions to arrivals at each stop, on shared stop ids or Databricks, same Iceberg files
S3 + Iceberg · public arrivals one row per bus per stop; plus the stop crosswalk
Catalog + Lake Formation table definitions and cross- account grants, per contract or Unity Catalog, Delta Sharing
S3 · inbox one folder per agency; files stay under the agency's key
EventBridge · file arrived one event per new file routes to the check
Lambda · contract check shape, deadline, privacy rule, signed by the right key?
Glue ETL · add up 06:30, with what has landed; a missing agency shows as unknown or Databricks, same Iceberg files
Step Functions · off-boarding deletes an agency's rows and archive, expires snapshots, purges cache
SQS · rejected files held with the reason agency notified
S3 + Iceberg · regional tables from-operator × to-agency × band each agency's rows under its key
Athena · queries planners' questions SQL over Iceberg or Databricks SQL
API Gateway · report API JSON, cached, rate-limited WAF in front
Cognito · sign-in agency staff and apps federated identities
Verified Permissions agreements compiled to policy allow or deny per request
Aurora · registry agreements, contract versions, shared stop and route ids
CloudTrail + Object Lock every read and write written once, kept
CloudWatch · monitoring file late or missing by 06:00, failed jobs: alarm to on-call
KMS · region's keys registry, audit and the region's own tables only
Regional planners transfer matrix, waits, crossing points
Journey view cross-agency trip planner connection times
crosses an account border data inside one account control: schedules, sign-in, rules, audit, keys orange italics: could as well be Databricks on the same files a key used across accounts, by grant Services are recommendations, not settled. Names are illustrative; no agency has agreed to anything. Decisions 25–28, 34, 41–43, 48–50.
Hover a component to see what it sends and receives.