Project system brief

Commercial B2B overland freight platform, fleet waybill tracking, and lead qualification automation for PT Trukindo Logistik Prima.

Product Context

Product Context

Commercial B2B overland freight platform, fleet waybill tracking, and lead qualification automation for PT Trukindo Logistik Prima.

System Problem & Scope

System Problem & Scope

Handling corporate B2B Full Truckload (FTL) quote inquiries, intercity fleet waybill tracking, and commercial lead qualification within a structured, resilient system.

Engineering Constraints

Engineering Constraints

Isolating public self-service actions (3-step quote flow and waybill search) from internal operational tooling (lead scoring, human-in-the-loop approvals, and audit trails) with strict security barriers.

System Architecture Flow

System Architecture Flow

Dual-tier architecture combining a public commercial portal, an idempotent ingestion API with token bucket rate limiting, a PostgreSQL lead lifecycle state machine, and a fail-closed showcase gate for public presentations.

5 System Stages
Active Stage: 01
01CLIENT

3-Step FTL Quote Intake

Active Stage
02SERVICE

Idempotency & Rate Limiting

03CACHE

Lead Lifecycle FSM

04WORKER

Waybill & Fleet Lookup

05DATABASE

PostgreSQL Audit Trail

STAGE 01

3-Step FTL Quote Intake

Collects origin, destination, vehicle type, and cargo tonnage with instant volume estimations and Honeypot anti-spam defense.

STAGE 02

Idempotency & Rate Limiting

Protects intake route handlers against replay attacks, duplicate submissions, and automated query bursts.

STAGE 03

Lead Lifecycle FSM

Transitions inquiries through New, Qualified, Quoted, and Booked states with automated sales SLA monitoring.

STAGE 04

Waybill & Fleet Lookup

Provides shippers real-time milestone checkpoints and delivery verification without revealing internal telematics hardware.

STAGE 05

PostgreSQL Audit Trail

Maintains tamper-evident records of freight quotes, commercial decisions, and telematics event updates.

Execution & Failure-Mode Explorer

How the architecture behaves under real faults

Primary stage: Idempotency & Rate Limiting

Shippers submit FTL quote requests through Zod-validated endpoints that create a tracked lead and initial audit event.

Key Engineering Contributions

Key Engineering Contributions

Engineered full-stack and backend services, multi-step FTL quote calculation engine, telematics waybill lookup endpoints, request defense gates, and fail-closed public demo sandboxing.

Reliability & Integrity Guarantees

Reliability & Integrity Guarantees

Guaranteed through strict Zod boundary validation, distributed idempotency keys preventing duplicate submissions, immutable append-only event logs, and complete operational separation.