Project deep dive · 2025 — present

China Locates

Turning a firehose of market updates into a dependable inventory service that answers locate requests in under a second.

PythonFastAPIRedisKafkaKubernetes
700Mupdates / day
280kinventory records
10klocates / day

The system, in motionOne shared state. Many safe readers.

The writer builds the inventory from live and batch sources, persists the shared truth in Redis, and keeps five stateless reader pods ready to answer requests at scale.

01 · ingest

Inventory updates

700M / day

SSE feed · Kafka events · daily batch loads

02 · build

Inventory writer

1 leader pod

Normalises, groups and reconciles the live state.

03 · shared state

Redis

280k records

Fast, consistent inventory snapshot for every reader.

04 · scale out

Reader pods

R1R2R3R4R5

Heartbeat-gated · fail-closed reads

05 · serve

Locate clients

10k requests / day

19 REST endpoints · responses coordinated through Kafka

event bus

Kafka

events in · responses out

archive

S3

Durable history

Live data flowShared stateSafety boundary

What changedEngineering that earns trust

The platform is designed around operational reality: the inventory must be current, readers must agree, and a degraded dependency must fail safely.

01

Fast by construction

Targeted Redis queries replaced full-table scans, taking reconciliation and short-sell endpoints from roughly 30 seconds to sub-second.

02

Consistent across pods

A leader-follower topology with heartbeat-gated reads eliminates cross-pod divergence while keeping readers horizontally scalable.

03

Observable in production

Prometheus coverage grew from health checks to around 15 operational metrics for SLO tracking and quicker incident triage.

Public summary The animation describes the architecture at a high level — no proprietary models, data, or implementation details are shown.

Return to the CV →