← Back
Home › Systems › Transport, logistics and mobility

freight-rail-operations

Transport, logistics and mobility | freight-rail-operations — freight railroad operating system: car trip planning and blocking, yard and hump management, waybills and inter-railroad car hire (Railinc), crew and locomotive assignment, shipper ETA

Union Pacific, CSX, Norfolk Southern, BNSF (Berkshire Hathaway), CHN Energy heavy-haul

SystemTechniques · 39Primitives · 81 freight-rail-operations Partitioned commit logdistributed · medium: A topic split into replicated append-only partitions: key hash keeps per-key order, offsets give position, and a high watermark limits readers to fully replicated records.›Interlocking logicembedded · medium: Railway route setting, locking, flank protection and release as verified boolean logicInventory reservationfinance · medium: Reserving stock with TTL holds, release on timeout and no overselling under contentionMultilateral nettingfinance · medium: Netting obligations across many parties into one net position per participant per currencyTariff ratingfinance · medium: Rate usage events against price plans: tiers, time bands, bundles and rounding rulesMap matching hmmgeometry · medium: HMM/Viterbi map matching of GPS traces onto the road graphAssignment problem (Hungarian / Jon…graphs · medium: Optimal one-to-one matching of rows to columns in O(n³) by growing a matching along shortest augmenting paths over dual potentials.›Event deduplication windowdistributed · low: Keep the ids of recently accepted events for a time window and drop repeats; memory stays bounded by rotating time buckets instead of per-entry timers.›Proration calculationfinance · low: Prorating charges and credits for mid-cycle plan changes by time usedReconciliationfinance · low: Match internal ledger records against bank and processor statements by reference, then amount and date window; every unmatched or mismatched item becomes an exception.›Linear referencinggeometry · low: Locate events and attributes along a route by measure (distance from start) and project points onto routes, with calibration pointsX12 edi messagingnetworking · low: ANSI X12 and EDIFACT interchanges: segment/element delimiters, ISA/GS/ST envelopes, control numbers and 997/CONTRL acknowledgementsFast hash functionsdata-structures · low: Non-cryptographic hashes built from 64×64→128-bit multiplies and xor-shifts; pick by key size, trust level and whether the hash is persisted.›Consumer offsetsdistributed · low: Each consumer group stores one integer per partition, the next position to read, so a restarted consumer resumes where it left off with at-least-once delivery.›Segmented logdistributed · low: Split an append-only log into files named by their first offset, write only the newest, and find any record by binary search plus a sparse index.›Zero-copy I/Onetworking · low: Move bytes between files, sockets and NICs by passing page references instead of copying through user space: sendfile, splice, MSG_ZEROCOPY, kTLS.›Fixed-rate control loopembedded · low: Run a controller at an exact period using absolute deadlines and a fixed dt, so jitter never accumulates and the math stays valid.›Redundancy votingembedded · low: N-modular redundancy and MooN voting (2oo3, TMR) with discrepancy detectionConditional writesdistributed · low: Put-if-absent / if-match compare-and-swap on objects or keys as a commit primitiveIdempotency keysfinance · low: Client-chosen unique key per logical operation, stored with a request fingerprint and the final response, so retries replay the first result instead of acting twice.›Hierarchical timing wheelsystems · low: Timers bucketed by expiry into wheels of slots, coarser wheels for far deadlines: O(1) insert and cancel for millions of timeouts.›Double-entry ledgerfinance · low: Append-only journal of transactions whose postings sum to zero per currency; balances are derived, so money can only move, never appear or vanish.›Hash aggregationstorage · low: GROUP BY via hash tables with partitioning and spill to disk+ 32 more techniques+ 65 more primitives

Similar systems

Share the most building blocks with this one.