active users in 30 days, Sep 25–Oct 24, 2026 (Google Analytics)
5 editions
sharing one ClickHouse market-data core
9.8 s → 0.64 s
cold item-page load
9.8 s before0.64 s after time-boxing prefetch
010 s
66,000+
tests in the CI suite
What I built
I build and operate the path from upstream auction data to the page a
player uses to decide what to buy or sell: collection, storage, APIs,
caching, the web app, a Tauri desktop companion for Windows, and the
in-game addon it installs.
In October 2026 I moved every edition’s market
data from separate TimescaleDB instances to one ClickHouse core, keeping
transactional state in PostgreSQL.
Engineering decisions
Upstream validation
An upstream schema break must not look like an empty auction house. The
collector distinguishes missing or malformed auction data from a valid
empty result, preserving the difference between “nothing is listed” and
“we could not read the market.”
Current prices without a database round trip
Each web replica loads a market’s current prices into compact typed
arrays, keyed by snapshot generation and held under a byte budget.
Warm lookups stay in memory; concurrent cold requests share one load.
ClickHouse handles history and aggregation, while a rising generation
number keeps a late update from restoring an older cache entry.
Three data sources
Blizzard’s API covers retail across 184 connected realms in four
regions, the TSM API covers the classic editions, and for WoW Forever
the desktop companion uploads players’ own auction scans. The shared
storage preserves each source’s identity, timing and missing values;
a source that did not report a total auction count leaves it unknown.
Verify a snapshot before publishing it
Writers insert retry-safe batches and check their counts and sums
against a ledger before advancing the market’s current pointer.
A reconciler finishes interrupted publication. I migrated readers
through dual writes and shadow comparisons of the old and new answers.
The data model, migration and recovery design.
Latency under load
p99 latency down from 36.9 sto 2.6 s
040 s
503s from 22to 0
022
a 600-request sample
Time-boxing server-side prefetch cut cold item pages from 9.8 s to
0.64 s. In September 2026 I traced a spike of 503 errors to an index
that blocked PostgreSQL’s in-place updates and a rollup that stalled
Node’s event loop for up to 16 seconds.
After the fix, a 600-request
sample showed p99 latency down from 36.9 s to 2.6 s and 503s from 22
to 0.
Tests that match the change
caught 94 of the 110 failing test files
16 missed
More than 66,000 tests run in CI, but most changes touch a small part
of the code. In a replay of 110 failed CI runs from Aug–Sep 2026, predictive test
selection ran a median 13.7% of the test files and still caught 94 of
the 110 failing test files.
How it works.
Architecture
One API serves the web app, the desktop companion, and the in-game addon.
SourcesBlizzard, TSM, player scans
CollectorsSource-aware schedules
Data coreClickHouse facts; PostgreSQL control
API and cacheVersioned price books and Redis
Clients
Web app
Desktop companion
In-game addon
The tradeoff
Freshness, cost, and responsiveness pull in different directions. I use
source-aware collection and layered caches so the user can get a useful
answer without every request repeating the same upstream work.