Skip to content
BLACKLAKE
REF-LOGI
Project artifact

Event-driven logistics orchestration

A multi-region logistics platform suffered cascading failures during peak demand. The monolithic event processor couldn't scale horizontally, and retry storms amplified outages. We redesigned the event architecture for predictable throughput.

LatencyCostReliability
Event ArchitectureKafkaDistributed Systems
Industry
Supply chain & logistics
Timeline
4 months
Executive skim
Three measured signals
Jump to outcomes
P99 latency (peak)
12s → 180ms
Consistent processing even under load
Infrastructure cost
40% reduction
Right-sized compute through horizontal scaling
Peak throughput
3x increase
Handled triple the event volume during peak demand
System sketch

Context

A logistics operator processed shipment events across 12 regional hubs. During peak periods, the single-threaded event processor fell behind, causing cascading delays.

Constraint

The system had to handle 3x current peak load without proportionally scaling infrastructure cost, and couldn't drop or duplicate events.

Intervention

Decomposed the event processor into domain-specific consumers with explicit back-pressure. Added dead-letter queues for poison messages, circuit breakers at external API boundaries, and horizontal scaling per partition.

Key decisions

  • Domain-partitioned event consumers
  • Dead-letter queues with automated retry
  • Circuit breakers at external boundaries
  • Horizontal pod autoscaling per partition
  • Real-time observability dashboards
  • Chaos engineering validation

Outcomes

Peak throughput increased 3x while infrastructure cost dropped 40%. P99 latency during peak went from 12s to 180ms.

Why it matters

Predictable event processing means on-time deliveries and accurate tracking—directly impacting customer experience and operational cost.

Implementation

Practical technology choices that matched the constraints.

KafkaKubernetesGoRedisTerraformPrometheusGrafana

Discuss a similar system

If this resembles your constraints, share a short description of what you run today and what needs to change.