TransitAI Core

Transfer analysis: interactive detailed architecture

Transfer analysis · every service, every connection Hover or tap a component; Esc or Show all to release. Orange italics: could be Databricks. SVGPNGBack
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 feedpublic vehicle positionsupdated every 10 s PRESTO fare exportnightly CSV of tapscard id stays in this account S3 · raw landingvendor files as they arrivekept three years Glue ETL · translatevendor columns to TIDES;card id hashed, kept at homeor Databricks, same Iceberg files S3 + Iceberg · TIDES tablesstop visits and fare tapsnever leave this account Glue ETL · count and timetransfers by from-operator, route,band; distinct hashed cards; waitsor Databricks, same Iceberg files S3 · nightly totalsrows under 5 cards droppedencrypted with MiWay's key KMS · MiWay's keyregion holds a revocable grantrevoke it: rows go dark EventBridge Schedulerruns the jobs at 02:00after the export landsor Databricks Workflows Athena · read arrivalsTTC buses at MiWay stopsqueried in place, no copyor Databricks, same Iceberg files ECS on Fargate · pollerreads every open feedevery 10 s Data Firehose · archivebatches positionswrites Parquet S3 + Iceberg · feed archiveraw positions and trip updates,as polled Glue ETL · derive arrivalspositions to arrivals at each stop,on shared stop idsor Databricks, same Iceberg files S3 + Iceberg · public arrivalsone row per bus per stop;plus the stop crosswalk Catalog + Lake Formationtable definitions and cross-account grants, per contractor Unity Catalog, Delta Sharing S3 · inboxone folder per agency; filesstay under the agency's key EventBridge · file arrivedone event per new fileroutes to the check Lambda · contract checkshape, deadline, privacy rule,signed by the right key? Glue ETL · add up06:30, with what has landed;a missing agency shows as unknownor Databricks, same Iceberg files Step Functions · off-boardingdeletes an agency's rows and archive,expires snapshots, purges cache SQS · rejected filesheld with the reasonagency notified S3 + Iceberg · regional tablesfrom-operator × to-agency × bandeach agency's rows under its key Athena · queriesplanners' questionsSQL over Icebergor Databricks SQL API Gateway · report APIJSON, cached, rate-limitedWAF in front Cognito · sign-inagency staff and appsfederated identities Verified Permissionsagreements compiled to policyallow or deny per request Aurora · registryagreements, contract versions,shared stop and route ids CloudTrail + Object Lockevery read and writewritten once, kept CloudWatch · monitoringfile late or missing by 06:00,failed jobs: alarm to on-call KMS · region's keysregistry, audit and theregion's own tables only Regional plannerstransfer matrix, waits,crossing points Journey viewcross-agency trip plannerconnection times crosses an account borderdata inside one accountcontrol: schedules, sign-in, rules, audit, keysorange italics: could as well be Databricks on the same filesa key used across accounts, by grantServices 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.

↑ ↓ to move · ↵ to open · esc to close