Design Real-Time Rail Shipment Tracking and ETA for Customers
Last updated: November 29, 2026
Quick Overview
Design the system that lets a shipper see where each of its rail cars or intermodal containers is right now, its predicted arrival time, and get notified about delays, using events from trackside readers, locomotive GPS, and yard systems.
Bnsf
November 29, 20260
0
0 solved
Design the system that lets a shipper see where each of its rail cars or intermodal containers is right now, its predicted arrival time, and get notified about delays, using events from trackside readers, locomotive GPS, and yard systems.
Shipment visibility is one of the most visible customer products a freight railroad offers, and BNSF ingests car movements from AEI readers, train GPS, and terminal systems. The interviewer checks event ingestion and ordering, mapping cars to trains, how ETAs are recomputed, and serving many customer reads cheaply.
What the Interviewer Expects
- Separates ingestion, car state, ETA, and customer-facing read paths
- Handles out-of-order and duplicate events
- Links car location to train location while a car is on a train
- Explains when and how ETAs are recomputed
- Supports notifications and partner APIs or EDI
- Sizes the system with rough numbers
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- A reader goes offline for six hours. What does the customer see?
- How would you let large customers pull status for 50,000 cars at once?
- How do you avoid spamming customers when an ETA flickers?
- How would you hand off to a trucking partner for the final mile of an intermodal shipment?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: current location and status per car or container, ETA to destination, event history, alerts on delay or arrival, API and EDI access for large shippers. Non-functional: location fresh withi...
High-Level Design
- Ingestion: AEI reads, locomotive GPS pings, yard events (arrive, hump, pull, depart), and train consist updates land in a Kafka-style log, partitioned by car id (consists by train id).
- **Car...