Case study 16 / 25Azure Cloud
Cloud delivery of a 3D digital twin and a client demo at parity
Clients now evaluate a demo at parity with the product, 0 of 38 views failing instead of 14, and a repeat visit downloads 0.01 MB, not 9.4.
My roleDesigned it and led a team of up to 3: set its standards, mentored it, agreed the roadmap with operations and the client, presented to leadership.
Stack
- Azure App Service
- Azure CLI
- Node.js
- CesiumJS
- WebGL
- Web Workers
- Brotli
- Next.js
01 · How it works
- Data flow
What it does
I moved a browser-based 3D twin of a pipeline system and a channel from a developer machine to its own cloud host, with its settings and imagery token managed outside the code. In the same effort I brought the product's cloud demo, the version external clients evaluate, from 229 commits behind to parity.
Read more
Every product API route is now answered or excluded for a stated reason, and a daily check flags new drift.
5 connections· select a part to trace it
- Build package to Cloud app server: precompressed brotli files
- Cloud app settings to Cloud app server: token on restart, no deploychanged
- Web client to Cloud app server: parallel requests at start
- Cloud app server to Web client: brotli, or 304 with 0 byteschanged
- Web client to Terrain service: terrain requests with token
02Results
- R01Lower is better
Client demo views failing a walkthrough (of 38)
Before 14, after 0, eliminated. Lower is better.BeforeAfter - R02Lower is better
Data a repeat visit downloads
Before 9.4 MB, after 0.01 MB, 940× lower. Lower is better.BeforeAfter - R03Lower is better
First visit, page load to scenario ready
Before 5.1 s, after 4 s, −22%. Lower is better.BeforeAfter
What it achieved
- What external clients evaluate: a demo with 14 of 38 views failing, 229 commits behind → 0 failing, at parity with the product
- API coverage: 55 routes unanswered → every route answered or excluded for a stated reason
Read more
- Imagery token: hard-coded in source → one cloud app setting, rotated without a redeploy
- Drift: found by hand → flagged the same day, and a lost patch anchor stops the copy
- Repeat visit: 9.4 MB downloaded again → 0.01 MB or less, served from cache
03Decisions and trade-offs
- Constraint
The client demo was 229 commits behind the product.
DecisionRun the product's own engines over recorded scenarios, with a daily drift check.
What it costA lost patch anchor stops the copy until someone fixes it.
- Constraint
Precomputing defaults looked like the fix for a slow start.
DecisionMeasure: physics took 72 ms and the wait was worker start-up, so run it on the page thread.
What it costIt uses the page thread, but nothing is stored to go stale.
- Constraint
The imagery token was hard-coded in the source.
DecisionMove it to one cloud app setting, rotated without a redeploy; no token-hiding proxy.
What it costThe browser still receives the token, as it would through any proxy.
The challenge
The twin ran from a developer machine with a hard-coded imagery token, so rotating the token required a code change. In the cloud it was slow for reasons the server could not explain: the host idled near 5% CPU while the browser chained requests, waited on terrain and recomputed the physics on every visit, with nothing cached.
Read more
The client demo had drifted much further: 229 commits behind, 55 product API routes unanswered and 14 of 38 views failing a walkthrough. What external clients evaluated no longer matched what the product does.
What I learned
Measure before buying hardware: a larger plan would have doubled the cost of a server idling at 5% CPU, when the delays lived in the browser, and caching turned a repeat visit into almost nothing to download.
Read more
A demo is only worth showing if it is current, so it runs the product's own engines over recorded scenarios: current behavior, nothing staged.
Stack
- Azure App Service
- Azure CLI
- Node.js
- CesiumJS
- WebGL
- Web Workers
- Brotli
- Next.js
Skills
- Cloud deployment
- Web performance
- HTTP caching
- Secrets management
- Drift detection

