Design a Freight Logistics Network

Medium45 min
1 / 30
System design answer

Design a Freight Logistics Network

Medium45 min30 sections
understanding•10 min read

Problem Statement: A Constrained Freight Coordination Network

Frames freight as a multi-constraint matching, routing, and compliance problem rather than a single-delivery dispatch app.

Problem statement

Design a freight logistics network that coordinates the movement of cargo across a fleet of trucks and, optionally, third-party carriers. A shipper books a load with weight, dimensions, origin, destination, and a deadline. The platform must match that load to a suitable truck, plan a multi-drop route when several shipments share a truck, track the truck's location in real time, keep cargo custody accurate, monitor the driver's legally limited hours, and re-plan dynamically when an urgent shipment arrives or a disruption occurs.

This is not ride-hailing with bigger vehicles. Passenger dispatch matches one rider to one driver for a ten-minute trip and can tolerate a wrong match by re-dispatching. Freight matches many shipments to many trucks over multi-day hauls, where a wrong match strands forty thousand dollars of cargo, violates a federal hours-of-service rule, or breaks a delivery window that triggers contractual penalties. The cost of an error is measured in thousands of dollars and regulatory exposure, not a three-star rating.

The defining constraints

Three properties separate freight from passenger systems and must drive every later decision.

First, capacity is continuous, not binary. A 53-foot dry van holds 45,000 lbs and 3,000 cubic feet. A load may be a full truckload (FTL), or it may be less-than-truckload (LTL), where several shippers' freight is consolidated onto one trailer. Matching must reason about remaining weight, volume, and pallet positions, not just "is a vehicle free." This turns assignment into a bin-packing-plus-routing problem.

Second, time is legally bounded. In the United States the FMCSA hours-of-service rules cap a driver at 11 hours of driving inside a 14-hour duty window, followed by 10 hours off, and 60/70 hours over 7/8 days. Since the ELD mandate, every commercial truck records duty status electronically. A route that is geometrically optimal but legally impossible is worthless. The system must treat hours-of-service as a hard routing and matching constraint and as an auditable compliance record.

Third, the physical world is adversarial. Trucks lose cellular coverage in rural corridors and mountain passes. Drivers cross state lines into different jurisdictions. Cargo is transferred between trucks at terminals. GPS drifts in urban canyons. The platform must keep location, custody, and compliance state coherent despite intermittent connectivity.

The five architectural planes

A strong answer separates the system into planes with different consistency and latency needs:

  1. Booking plane — shipment creation, rates, tendering, contracts, billing. Transactional, strongly consistent, money-bearing.
  2. Matching and routing plane — load-to-truck assignment, multi-drop sequencing, consolidation. Constrained optimization, batched and streaming.
  3. Telemetry plane — real-time location pings, HOS duty-status events, sensor data. Extremely high write throughput, freshness-bounded.
  4. Visibility plane — ETA prediction, customer tracking, exception alerts. Derived projections, eventual consistency.
  5. Compliance and governance plane — HOS enforcement, audit trail, permits, security. Immutable, legally binding.

The single most important architectural statement to make in the first two minutes is this: booking and compliance are sources of truth that must never be wrong, while live location and ETA are projections that are allowed to be briefly stale. Keeping those two worlds cleanly separated is what lets the system scale to tens of thousands of trucks while remaining trustworthy enough to invoice against.

Why this question matters

Freight and trucking move roughly 70% of U.S. freight tonnage and represent a near-trillion-dollar industry. Interviewers at Uber Freight, Convoy, Amazon, project44, and Flexport use this question to test whether a candidate can move beyond the passenger-matching template and handle consolidation, hard legal constraints, multi-day planning, and B2B money flows. Most candidates only know ride-sharing; the candidate who speaks fluently about LTL consolidation, HOS windows, and truck-specific routing immediately stands apart.

Key Highlights

  • •Freight is multi-shipment-to-multi-truck matching over multi-day horizons, not one-rider-one-driver dispatch.
  • •Capacity is continuous: weight, volume, and pallet positions, enabling less-than-truckload consolidation.
  • •FMCSA hours-of-service rules make time a hard legal constraint and an auditable compliance record.
  • •Booking and compliance are strongly consistent sources of truth; live location and ETA are freshness-bounded projections.
  • •The five planes are booking, matching/routing, telemetry, visibility, and compliance.
  • •A wrong match strands high-value cargo or violates federal law, so correctness outweighs raw speed.
Lead With the Truth/Projection Split
State early that booking and compliance must never be wrong, while location and ETA may be briefly stale. This single sentence shows you understand which data bears money and legal weight.
Do Not Recycle the Passenger Answer
A design that matches one shipment to one truck and ignores weight, volume, consolidation, and hours-of-service will fail a serious freight interview. Name the multi-constraint nature up front.

Section Rescue Kit

Buzzwords to use:

Less-Than-Truckload (LTL)Hours of Service (HOS)

Safe statements:

  • "Let me separate the data that must never be wrong from the data allowed to be briefly stale before I choose any technology."
  • "Before drawing services, I want to define which decisions are money-bearing, which are legally binding, and which are best-effort projections."
Design a Freight Logistics Network - System Design | WinJob | WinJob