TransitAI Core

Anomaly detection: interactive detailed architecture

Anomaly detection · every service, every connection Hover or tap a component; Esc or Show all to release. Orange: a costed alternative, or planned. SVGPNGBack
Anomaly detection: every service, and what flows between them Two agency accounts, the region's account and its readers; every service with its role, every connection labelled with what flows on it. TTC · its own AWS account · the agency with the incident MiWay · its own AWS account · the neighbour who hears Planned The region · the exchange's AWS account Watch the feeds Find · rules, and expected against seen Costed upgrade Leaving Tell Shared parts · costed in every use case Readers at the region public feeds, every 10 s MiWay's public feeds, the same way planned counts 5-minute loads: counts, no rider positions heartbeat timetables, when they change all records Parquet 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 a party left shared stop ids audit event: who read which alert allow or deny sign-in token encrypts lane and archive GTFS-Realtime feedspositions, trip updates, alertspublic, refreshed every 10 s Passenger countersboardings and alightings per stopcounts of people, never who Lambda · the adapter5-minute loads per route and stoppublished by the region, run here EventBridge · TTC's busalerts arrive hereTTC routes them as it likes TTC control roomits own feed and vehicles first,then what neighbours cause GTFS-Realtime feedsMiWay's, polled the same way;all seven parties' are EventBridge · MiWay's busalerts arrive hereMiWay routes them as it likes MiWay control roomhears a TTC delay that breaksits connections KMS · MiWay's keyon its rows of the transfer totalsrevoked: it drops out of the lookup Weather and eventsforecasts, event calendarsto label an alert: snow, a gameplanned · not sourced, not costed ECS on Fargate · pollerreads every open feed every 10 s;timetables when they change Kinesis Data Streams · live lanepositions and loads, in orderkept 24 hours, region's key CloudWatch alarm · heartbeatpoller silent for a minute?then we are blind, not the feed Data Firehose · archivebatches the lanewrites Parquet S3 + Iceberg · feed archiveTIDES vehicle_locationsfor replays and tuning the bands Lambda · rulesfeed gap, frozen, jump, dead counter;loads late or off-contract DynamoDB · last stateper vehicle: place, time, counterwritten once per 5 minutes Lambda · delay and loadmatches each vehicle to its timetable;one value per route per 5 min S3 · timetablesevery party's published GTFSthe yardstick for delay CloudWatch · metrics1,680 series: delay and loadper route and direction CloudWatch anomaly detectionan expected band per series;alarm after 2 windows outsideor Chronos, the upgrade below SageMaker · Chronospre-trained forecaster; a large missbetween forecast and seen is an anomalyupgrade · costed, about $2.4k a year more Step Functions · leaving jobstops polling; deletes alarms, stateand archive part; expires snapshots EventBridge · alert busone event per alertroutes by receiver SNS · deliveryone topic per receiverretries for an hour SQS · undeliveredalerts a receiver did not takeheld 14 days, replayable Lambda · build the alertkind, party, where, since,expected and seen, who is affected DynamoDB · alert logevery alert, open or clearedkept 13 months API Gateway · live alert feedsigned-in control rooms and viewsWAF in front DynamoDB · who is affectedshared stops joined to transfer totalsrebuilt nightly with Athena S3 + Iceberg · transfer totalsfrom the transfer use caseeach agency's rows under its key Cognito · sign-inagency staff and appsfederated identities Verified Permissionsagreements compiled to policy:which alerts a party may read Aurora · registryparties, feed addresses, contracts,shared stop ids CloudTrail + Object Lockevery read of the alert feedwritten once, kept KMS · region's keyslive lane, archive, alert log CloudWatch · monitoringfailed functions, stuck deliverypages the on-call Region's on-calltold when the system itself failsnot when a bus is late Regional viewsdisruption map, journey view,planners crosses an account borderdata inside one accountcontrol: heartbeat, sign-in, rules, audit, keys, leavingorange: a costed alternative, or an input that is planned and not costedServices are recommendations, not settled. Names are illustrative; no agency has agreed to anything. Decisions 29–32, 34, 40, 51–54.

Hover a component to see what it sends and receives.

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