TransitAI Core

Merged platform: interactive detailed architecture, online and offline

Merged platform · every service, every connection · proposed Hover or tap a component; Esc or Show all to release. Filter by path: both paths stay lit in every view. SVGPNGSystem designDataBack
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 pathsGTFS-Realtime feedsTTC's public positions, trip updatesand alerts, refreshed every 10 s offlinePRESTO fare exportnightly CSV of tapscard id stays in this account both pathsS3 · raw landingAVL, APC and fare exports as they arrivekept three years; never leave both pathsGlue ETL · the adapter, batchexports to TIDES stop_visits, trips,fare_transactions; card id hashedor Databricks, same Iceberg files both pathsS3 + Iceberg · TIDES tablesstop visits, trips and fare taps:one Silver both paths read offlineGlue ETL · count and timetransfers by from-operator, route,band; distinct hashed cards; waitsor Databricks, same Iceberg files offlineS3 · nightly totalsrows under 5 cards droppedencrypted with MiWay's key both pathsKMS · MiWay's keyon its totals, its inbox files andits rows at the region; one grant offlineEventBridge Schedulerruns the jobs at 02:00after the export landsor Databricks Workflows offlineAthena · read arrivalsTTC buses at MiWay stopsqueried in place, no copyor Databricks, same Iceberg files both pathsECS on Fargate · pollerreads every open feed every 10 sinto the lane; timetables on change both pathsData Firehose · archivebatches the lane into Parquet:positions and trip updates, as polled both pathsS3 + Iceberg · feed archiveBronze as polled; Silver TIDESvehicle_locations derived from it offlineGlue ETL · derive arrivalspositions to arrivals at each stop,on shared stop idsor Databricks, same Iceberg files offlineS3 + Iceberg · public arrivalsone row per bus per stop;plus the stop crosswalk offlineCatalog + Lake Formationtable definitions and cross-account grants, per contractor Unity Catalog, Delta Sharing offlineS3 · inboxone folder per agency; filesstay under the agency's key offlineEventBridge · file arrivedone event per new fileroutes to the check offlineLambda · contract checkshape, deadline, privacy rule,signed by the right key? offlineGlue ETL · add up06:30, with what has landed;a missing agency shows as unknownor Databricks, same Iceberg files both pathsStep Functions · off-boardingone job: stops polling; deletes rows,alarms, state, archive part; rebuilds offlineSQS · rejected filesheld with the reasonagency notified both pathsS3 + Iceberg · regional transfer tablefrom-party × to-agency × band;each agency's rows under its key; both read offlineAthena · queriesplanners' questionsSQL over Icebergor Databricks SQL both pathsAPI Gateway · one front doorreport API and live alert feed;JSON, cached, WAF in front both pathsCognito · sign-inagency staff, control rooms, appsfederated identities both pathsVerified Permissionsagreements compiled to policy:allow or deny per request, both APIs both pathsAurora · registryparties, feeds, both contracts,operator names, shared stop ids both pathsCloudTrail + Object Lockevery read and write, reportsand alerts alike; written once both pathsCloudWatch · monitoringfile late by 06:00, poller silent,delivery stuck: pages the on-call both pathsKMS · region's keysregistry, audit, lane, archive, alertlog, the region's own tables offlineRegional plannerstransfer matrix, waits,crossing points offlineJourney viewcross-agency trip plannerconnection times onlinePassenger countersboardings and alightings per stopthe AVL and APC exports onlineLambda · the adapter, stream5-minute loads per route and stopfrom the same Silver; counts, no rider onlineEventBridge · TTC's busalerts arrive hereTTC routes them as it likes onlineTTC control roomits own feed and vehicles first,then what neighbours cause both pathsGTFS-Realtime feedsMiWay's, polled the same way;every registered party's are onlineEventBridge · MiWay's busalerts arrive hereMiWay routes them as it likes onlineMiWay control roomhears a TTC delay that breaksits connections onlineWeather and eventsforecasts, event calendarsto label an alert: snow, a gameplanned · not sourced, not costed both pathsKinesis Data Streams · live lanepositions and loads, in order;24 hours, region's key both pathsCloudWatch alarm · heartbeatpoller silent for a minute?then we are blind, not the feed onlineLambda · rulesfeed gap, frozen, jump, dead counter;loads late or off-contract onlineDynamoDB · last stateper vehicle: place, time, counterwritten once per 5 minutes onlineLambda · delay and loadmatches each vehicle to its timetable;one value per route per 5 min onlineS3 · timetablesevery party's published GTFSthe yardstick for delay onlineCloudWatch · metrics1,680 series: delay and loadper route and direction onlineCloudWatch anomaly detectionan expected band per series;alarm after 2 windows outsideor Chronos, the upgrade below onlineSageMaker · Chronospre-trained forecaster; a large missbetween forecast and seen is an anomalyupgrade · costed, about $2.4k a year more onlineEventBridge · alert busone event per alertroutes by receiver onlineSNS · deliveryone topic per receiverretries for an hour onlineSQS · undeliveredalerts a receiver did not takeheld 14 days, replayable onlineLambda · build the alertkind, party, where, since,expected and seen, who is affected onlineDynamoDB · alert logevery alert, open or clearedkept 13 months onlineDynamoDB · who is affectedshared stops joined to transfer totalsrebuilt nightly with Athena both pathsRegion's on-calltold when the system itself fails:a dead poller, a late file, a stuck alert onlineRegional viewsdisruption map, journey view,planners crosses an account borderdata inside one accountcontrol: schedules, heartbeat, sign-in, rules, audit, keys, leavingorange: planned and not costed, a costed upgrade, or could be Databricksboth pathsonlineofflineA 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).

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