When a pose service outage takes the dance session with it

Making pose inference a condition of session service readiness lets a failed dependency remove otherwise healthy servers from traffic. For DanceSaga, camera preview and session controls should remain available when pose detection stops. The architectural mistake is treating an unavailable analysis function as proof that the whole session service cannot serve requests.

The configuration that looks responsible

Consider a Kubernetes deployment in which the session service calls an external pose inference service from its readiness handler. The configuration can pass review because checking dependencies appears more thorough than checking the process alone. But an inference outage then makes every session replica report itself unready, so normal Service routing loses its eligible backends even though those replicas can still serve session controls. This design is appropriate only if every request served by that deployment genuinely requires inference, otherwise the readiness boundary is broader than the functional dependency.

Keep the session, withdraw the feedback

Camera preview and session controls should continue through a local path that does not await inference, while pose feedback becomes explicitly unavailable and the last successful result stops being presented as current.

Reproduce it before the next incident

In an isolated test environment, route the session service's inference traffic through a fault proxy, then configure the proxy to reject upstream connections while leaving access to the session service intact. With the test namespace selected in your Kubernetes context, run `kubectl get pods` and `kubectl get endpointslices` before and during the fault, then inspect backend readiness conditions and exercise session controls through the normal application entry point. A simultaneous loss of ready replicas and usable backends confirms the dependency coupling if the readiness response identifies inference as its failing check. After separating the checks, repeat the same fault and verify that controls remain responsive while pose feedback is visibly unavailable. Use OpenTelemetry semantic conventions to correlate probe failures with inference errors, because a surviving camera preview alone does not establish that session requests still work.

A deadline is a resource boundary

For the proposed design, give each inference request an initial deadline of 250 ms, then validate that choice against measured feedback latency and movement quality. Enforce the deadline in the transport and prevent expired work from accumulating, since hiding an error in the interface does not release sockets or worker capacity. On recovery, accept only results associated with the active session and current frame context, so delayed responses cannot revive stale feedback. Apply this decision rule: exclude inference availability from session readiness only when the session functions promised during degradation remain independently usable and bounded in resource consumption. If that condition cannot be met, separate the serving responsibilities before declaring the session service healthy during an inference outage.

Back to DanceSaga - Pose Detection · Domains

← Back to DanceSaga - Pose Detection
Engineering & Architecture Brief

When a pose service outage takes the dance session with it

Making pose inference a condition of session service readiness lets a failed dependency remove otherwise healthy servers from traffic. For DanceSaga, camera preview and session controls should remain available when pose detection stops. The architectural mistake is treating an unavailable analysis function as proof that the whole session service cannot serve requests.

The configuration that looks responsible

Consider a Kubernetes deployment in which the session service calls an external pose inference service from its readiness handler. The configuration can pass review because checking dependencies appears more thorough than checking the process alone. But an inference outage then makes every session replica report itself unready, so normal Service routing loses its eligible backends even though those replicas can still serve session controls. This design is appropriate only if every request served by that deployment genuinely requires inference, otherwise the readiness boundary is broader than the functional dependency.

Keep the session, withdraw the feedback

Camera preview and session controls should continue through a local path that does not await inference, while pose feedback becomes explicitly unavailable and the last successful result stops being presented as current.

Reproduce it before the next incident

In an isolated test environment, route the session service's inference traffic through a fault proxy, then configure the proxy to reject upstream connections while leaving access to the session service intact. With the test namespace selected in your Kubernetes context, run `kubectl get pods` and `kubectl get endpointslices` before and during the fault, then inspect backend readiness conditions and exercise session controls through the normal application entry point. A simultaneous loss of ready replicas and usable backends confirms the dependency coupling if the readiness response identifies inference as its failing check. After separating the checks, repeat the same fault and verify that controls remain responsive while pose feedback is visibly unavailable. Use OpenTelemetry semantic conventions to correlate probe failures with inference errors, because a surviving camera preview alone does not establish that session requests still work.

A deadline is a resource boundary

For the proposed design, give each inference request an initial deadline of 250 ms, then validate that choice against measured feedback latency and movement quality. Enforce the deadline in the transport and prevent expired work from accumulating, since hiding an error in the interface does not release sockets or worker capacity. On recovery, accept only results associated with the active session and current frame context, so delayed responses cannot revive stale feedback. Apply this decision rule: exclude inference availability from session readiness only when the session functions promised during degradation remain independently usable and bounded in resource consumption. If that condition cannot be met, separate the serving responsibilities before declaring the session service healthy during an inference outage.

Related Architecture Specifications (DANCEGOAL): retrodances.com · dancegoal.com · gesturedance.com

More Technical Articles on rehabdance.com

The fallback nobody ran: a pose model config that passes review and breaks rehab sessions →The fallback pose model that dies with the primary →The CPU fallback nobody has ever loaded: a pose-detection config error that sails through review →