All research
Field Note 22InfrastructureExperiment · 4 Nov 2026

Container Apps: replica, streaming and queue recovery tests

A paired-container follow-up recovered signed console reads across repeated API and auth failures while retaining private operator access, rate limits and durable-job safeguards. Production cutover still needs transport and canary acceptance.

Two forest-green compute towers connected to a mint database, with one interrupted copper path and queued ivory blocks.
3 runsRepeated API and auth process-failure checks
Exploratory benchmark

First-party engineering evidence. Results apply to the tested configuration and sample; they are not an SLA or a general model ranking.

THE TAKEAWAY

Pairing API and auth preserved private access; bounded reads recovered across three repeated fault runs.

Testing the application layer separately from inference

Our previous experiment moved the control-plane data to dedicated managed PostgreSQL with HA. This follow-up asked whether replicated application containers could preserve access, accounting and queued work when a process disappeared. Inference stayed separate, and every upstream request in this experiment was synthetic.

The load steps measured lightweight control-plane requests. They do not describe how many people can generate speech, images or text simultaneously on the pilot GPUs. Those limits remain governed by the inference workers and their admission controls.

Recovery depends on the dispatch boundary

A leased job whose worker exited before dispatch completed on the surviving worker after 91.5 seconds. The approximately 90-second lease prevented two workers from executing it at once. The twelve-job batch completed with one measured receipt per job.

When the worker exited after dispatch, the job became uncertain after 89.4 seconds. There was one recorded upstream dispatch, with no automatic replay. An interrupted connection cannot prove that a real GPU has stopped. The test retained the admission and accounting hold until the separate synthetic backend confirmed completion, then exercised the audited reconciliation path.

The API continued serving the concurrent metadata requests during its process fault. Authentication retained its shared session data, but one of 30 immediate session lookups failed during the auth exit; subsequent lookups on the survivor succeeded. This is an observed transient failure, not a zero-downtime claim.

Continuous streaming and silent waits behave differently

The continuous diagnostic stream delivered output for five minutes and ended normally. In contrast, the request with no upstream output for 250 seconds returned HTTP 504 after approximately 240 seconds. These observations describe this configuration and run; they are not a promise of unlimited streaming duration.

A deliberate exit of the serving API replica interrupted its active stream. The surviving replica could serve new work, but it could not reconstruct that existing connection. Client cancellation also retained the conservative capacity hold until backend completion was confirmed. Long GPU warm-up waits therefore remain a durable-job concern, with explicit status and cancellation handling.

Why the original split-app candidate stayed off production

The proposed separate auth app returned HTTP 503 for console workspace loading. The current implementation intentionally permits its operator connection only over loopback. Removing that check would weaken an existing boundary. An isolated same-host check, with loopback preserved, passed sign-in, workspace loading, key creation and revocation.

We subsequently benchmarked API and auth containers paired within each replica. This preserved the loopback-only operator boundary rather than weakening it. The follow-up below closes that connection gap, while the independent transport, rollback and canary migration gates remain open.

At that stage, production migration also needed a matched latency baseline, safe handling of transient session lookup failures, real private inference transport and controller-failover tests, and a rehearsed rollback. Two web replicas alone still do not remove a single transport-host dependency. Production routing, GPU cost controls and inference placement were left unchanged.

Follow-up: a private loopback path in every replica

The revised candidate passed sign-in, verified session lookup, workspace loading, key creation, revocation and sign-out. Across three final repetitions, 4,812 sampled session/workspace reads completed successfully while one auth process and one API process were deliberately exited in each repetition. The slowest successful fault-phase read took 5.8 seconds. This is recovery with temporary delay, not a zero-downtime guarantee.

Short outages now trigger bounded retries only for explicitly read-only console routes. Authentication envelopes are re-signed with fresh nonces. A backend still rejects replayed envelopes; a classified consumed nonce lets the trusted bridge issue a new read. Sign-in codes, keys, passkey challenges and inference mutations are not automatically replayed.

If verification remains unavailable, the console keeps workspace data hidden and offers a reconnect action without clearing the session. A genuinely invalid session still goes to sign-in. Invalid signatures, disabled membership and rate limits remain enforced.

Retaining the limits that made the failure visible

Increasing the retry window did not justify relaxing authentication controls. The unspaced repeated test hit the existing throttle, and the bridge correctly left its 429 responses unretried. Independent fault repetitions were then separated by the configured cooldown. This distinguishes transport recovery from intentionally bounded traffic behind one client IP.

The final one-hour metadata soak recorded 28,804 requests with no non-200 or network outcomes. Minute p95 latency ranged from 15.4 to 20.5 ms. It is a lightweight control-plane load result, not a measurement of model-serving users or tokens per second.

Queue recovery still respected the dispatch boundary: a leased job recovered after 91.5 seconds; a dispatched job became uncertain after 90.5 seconds and was not automatically replayed. The twelve-job batch produced one measured receipt per job, and cumulative accounting matched retained receipts.

What remains before a production migration

The console connection and auth-recovery issues now have a tested candidate solution. Production remains on the existing Azure CPU control host, with dedicated HA PostgreSQL and separate inference. The benchmark used isolated synthetic state and made no production routing change.

A full migration still requires a matched production latency baseline, replicated-app database failover and resource-headroom checks, real private inference transport and controller failover with the old host unavailable, complete media/passkey/signup acceptance, a rehearsed rollback and a 24-hour canary observation. The five-minute active stream succeeded, but a silent upstream still reached the roughly four-minute ingress limit; slow warm-up work continues to need durable jobs.

THE MEASUREMENTS

Results, in context.

Original experiment: corrected recovery and security observations
CheckObservationInterpretation
API process exit1,135 concurrent metadata requests; 0 errorsSurviving replica served this sampled load
Auth process exit1 failed lookup out of 30; subsequent lookups succeededSession data survived; transient failure remains
Leased worker exit91.5 seconds to completionRecovered before dispatch, without duplicate execution
Running worker exit89.4 seconds to uncertain statusOne dispatch; no automatic replay
Batch accounting12 jobs; one measured receipt eachLedger total matched retained receipts
Revocation, nonce replay and zero budgetPassed after both replicas were healthyShared state and cost limits remained enforced
Split-app console workspaceHTTP 503Private operator path blocks production cutover
Same-host console sanitySign-in, state, key issue/revoke passedExisting loopback boundary works

Failed and invalidated initial runs are retained in the source archive. Uncertain status is not a successful inference completion.

Original experiment: warm metadata-load diagnostic
Scroll sideways to compare all columns →
ClientsRequests per topologyVM loopback p95ACA HTTPS p95
1606.6 ms21.7 ms
424019.2 ms21.8 ms
848049.4 ms30.4 ms
1696054.5 ms94.2 ms

Three rounds at each concurrency. All requests returned HTTP 200. Different timing boundaries and shared load-host resources prevent a production speed comparison.

Original experiment: sustained traffic and long-stream boundary
ScenarioResultBoundary
One-hour metadata soak28,798 requests; 0 non-200/network outcomes3600.0 seconds; four clients
Continuous diagnostic stream300.3 seconds; HTTP 200; normal end markerCandidate deadline 360 seconds
250-second silent upstreamHTTP 504 after 240.0 secondsNo successful streamed completion
API exit during streamConnection interrupted after three received chunksNo transparent stream continuation

Synthetic responses isolate transport behavior. Timing is client-observed; it does not measure model token generation speed.

Paired follow-up: repeated console faults
Scroll sideways to compare all columns →
RunAuth-fault readsAPI-fault readsFailed final reads
17528960
27508400
38267480

Four synthetic clients. Reads can take longer while bounded retries recover. Repetitions respect the existing auth cooldown; earlier errors and throttled requests are retained separately.

Paired follow-up: candidate-only control-plane load
Scroll sideways to compare all columns →
ClientsRequests per routeMetadata p95Workspace p95Errors
13020.3 ms125.5 ms0
412061.5 ms111.6 ms0
824065.1 ms218.4 ms0
1648088.1 ms326.8 ms0

Three rounds of ten requests per client per route, over ACA HTTPS from a regional load VM. This is not Vercel end-to-end latency, a matched production speed comparison or concurrent inference capacity.

TEST SETUP

How we ran it.

  1. Original experiment: South Africa North, zone-redundant Azure Container Apps Consumption environment. Two API and two authentication replicas at 0.5 vCPU / 1 GiB each; two queue workers and one separate synthetic inference backend at 0.25 vCPU / 0.5 GiB each. Replica counts were fixed; this was not an autoscaling experiment.
  2. Original experiment: Real application implementations from frozen Git revisions, with Node.js 22.23.3 for the gateway and Node.js 24.22.2 for authentication. A benchmark-only wrapper supplied fault controls and an artificial upstream. No production image or routing was replaced.
  3. Original experiment: An empty marked database on the existing private PostgreSQL 16 D2 HA server. TLS verification remained enabled. The test role owned only the synthetic database; no customer rows or production credentials were copied.
  4. Original experiment: A B2s_v2 VM generated requests and hosted baseline containers. Three rounds of 20 requests per client at 1, 4, 8 and 16 concurrent clients: 1,740 requests per topology. Requests alternated between authenticated model metadata and usage reads. Loopback HTTP and ACA HTTPS are different timing boundaries, and the baseline shares CPU with the generator.
  5. Original experiment: A separate 3600.0-second soak targeted eight authenticated metadata requests/second with four clients, recording 28,798 responses or network outcomes. It overlapped controlled rollout, fault injection and diagnostic load bursts. Minute p95 values are retained separately rather than presented as one pooled percentile.
  6. Original experiment: One abrupt API process exit, one auth process exit, a worker exit after leasing but before dispatch, a worker exit after dispatch, and an exit during streaming. Provider restart counts corroborated the corrected fault hook. Twelve batch jobs tested idempotency, completion and one measured receipt per job.
  7. Original experiment: The artificial upstream emitted a chunk approximately every 250 ms and reported fixed synthetic usage. Short streams, cancellation and five-minute continuous output were measured. A candidate-only 360-second gateway deadline allowed the ingress boundary to be probed; production deadlines were unchanged.
  8. Original experiment: Warm functional results are reported separately from failed startup. The first soak aborted while replicas were recovering. An initial PID-1 self-kill hook did not terminate the process; those failure claims were invalidated and rerun with abrupt process exit. No discarded run is counted as a successful fault test.
  9. Original experiment: Public regional meter arithmetic put the fixed candidate ACA allocation at approximately $0.297/hour while fully active, plus approximately $0.124/hour for the temporary VM, amortised disk and IP. Registry builds, DNS, requests and traffic are additional. These are planning rates, not an invoice or model-serving unit cost.
  10. A later 4 November follow-up paired one API and one auth container in each of two replicas of one app, retaining the original 0.5-vCPU/1-GiB allocation per container. Auth reached its API through replica-local loopback; public ingress rejected management routes. Separate queue workers and a synthetic upstream remained isolated from inference.
  11. The real signed console bridge was exercised over ACA HTTPS from the load VM: three independent runs with four clients alternating session and workspace reads, one auth exit and one API exit per run, and at least 65 seconds without auth requests between repetitions. Every retry used a new signature and nonce. The session deadline stayed eight seconds; only three named read routes could retry, at most five attempts.
  12. The first paired run retained three auth-read failures and one unclassified API-phase denial. Four attempts still left two failed workspace reads. The five-attempt client passed its first repetition, then an unspaced repetition reached the existing auth throttle and returned 462 HTTP 429 responses. Final repetitions used the required cooldown; no limiter rows were cleared and no limits were raised.
  13. The revised capacity steps used three rounds of ten requests per client at 1, 4, 8 and 16 clients, separately for model metadata and the actual console workspace route. These candidate-only timings have no matched production baseline. The final one-hour soak measured metadata reads separately from deliberate faults.
  14. A briefly orphaned prior metadata-soak container was explicitly stopped after the systemd client ended. Its partial output is retained separately; it is not included in the final one-hour result. Final source runtime equivalence, browser reconnect behavior, private database TLS and disabled membership were checked.
WHAT THIS DOES NOT PROVE

The limits matter.

  • These are exploratory synthetic experiments, not an availability SLA, regional disaster-recovery result, enterprise certification or model-quality benchmark.
  • Only process failures were injected. A whole Azure availability-zone failure was not simulated, and the shared production PostgreSQL server was not failed over during this run.
  • The baseline and candidate have different ingress paths. Their relative latency does not establish a production regression, speedup or a pass against a matched-baseline gate.
  • The one-hour soak covers authenticated model metadata reads, not a full production traffic mix. The test does not establish concurrent inference-user capacity.
  • The database also served production traffic, and baseline containers shared the load-generator VM. CPU contention, burst credits, background work and network timing can influence the measurements.
  • A five-minute continuous stream passed only with the diagnostic candidate deadline extended. Production request deadlines were not changed.
  • The initial replay check reached only the surviving auth replica. After both replicas were healthy, the repeat observed both replicas and rejected every replay.
  • The image is a conceptual generated illustration, not a photograph or a deployment diagram.
  • The final console repetitions used the configured auth cooldown; they do not establish sustained throughput beyond authentication rate limits.
  • The follow-up retries are bounded. Persistent outages still return an unavailable state, and an interrupted inference stream cannot be transparently reconstructed.
  • Synthetic browser fixtures test error/reconnect presentation; real Better Auth and workspace operations were tested separately in the isolated cloud environment.
OPEN FINDINGS

Evidence & sources.

The public extract contains the methods, selected results and caveats in this note. It is a curated summary, not the full raw run. Fingerprints identify the retained source artifacts; gated audio and private operational records are not included.

Download results extract
Source artifact fingerprints · SHA-256
results.jsonb47471fa9ccfa1c9e41653feee7509095dbff1635b4425a6f18e395b2f326da5
methodology.json0b953f3c728c3d29382c28499662a2d18063844246da13849af1647f3a52211c
paired-results.json607cb8dd5c809f0b1d156e69c4f1f7879df45a4aa30f04e8eee268bae91b231b
paired-methodology.json586cc724bbb4749416962d6cff224b80e6e5e31e83458ac7655932ad3f00bdc9

Suggested citation: Embiro Labs Research. “Container Apps: replica, streaming and queue recovery tests” Published 4 Nov 2026. embiro.ai/research/container-apps-recovery

Report a correction