Architecture

How It Works

Learn how RuntimeHQ coordinates application behavior alongside existing incident management stacks through parallel-track operations and a deterministic 5-step lifecycle.

How RuntimeHQ Works

RuntimeHQ operates as an Operational State Control Plane (OSCP) that bridges the gap between infrastructure monitoring and running application behavior.

When an operational disruption occurs, engineering organizations face two distinct coordination challenges: coordinating human responders to investigate and resolve the root cause, and coordinating software applications across the estate to protect customer experience and manage demand.


Parallel-Track Operations: Humans vs. Machines

Traditional incident management tools coordinate people. Observability platforms detect anomalies, alerting tools mobilize on-call engineers, and incident platforms organize triage channels. However, these systems coordinate human responders—they do not coordinate how running applications behave during the failure.

RuntimeHQ does not manage on-call schedules, page responders, or host incident triage channels. Instead, it introduces a dedicated Machine Coordination Track that runs in parallel with your human incident management workflow:

1. The Human Track (Managed by your Incident Stack)

Managed entirely by your existing tools (e.g., PagerDuty, incident.io, Slack). Engineers focus on diagnosing the failure, running diagnostics, and restoring backend services. Because RuntimeHQ coordinates application behavior independently, responders are relieved from having to rush emergency code deployments, hack database flags, or manually paste banners while triaging an outage.

2. The Machine Track (Managed by RuntimeHQ)

Authorized operators or automated runbooks declare the operational condition for affected capabilities. RuntimeHQ deterministically resolves and distributes the condition across global edge caches. Consuming applications across web, mobile, and backend surfaces immediately adapt their behavior—suppressing failing interactions, showing contextual operational messages, or rerouting to safe fallback workflows.


The Five-Step Operational State Lifecycle

Operational state flows through five strictly owned, unidirectional stages that decouple centralized operational governance from decentralized client execution:

1. Declare

An authorized operator or automated runbook submits an operational assessment for a defined target scope. Declarations define:

  • Target Scope: The specific application and capabilities affected (e.g., checkout.payments).
  • Operational Condition: The declared health (Operational, Degraded, Outage, or Maintenance).
  • Operational Message: Authoritative operational guidance for end users or consuming teams.

Declarations can be authored manually via the Console UI or programmatically via the Control Plane API.

2. Resolve

The control plane applies Deterministic State Resolution centrally. The engine reconciles overlapping declarations, active incidents, and scheduled maintenance windows according to strict precedence policies:

  • Resolves conflicts authoritatively before state leaves the control plane.
  • Consuming applications never resolve conflicting operational rules locally.
  • Produces immutable, versioned, resolved state artifacts.

3. Distribute

The control plane asynchronously publishes resolved state artifacts out-of-band to a globally replicated edge distribution layer:

  • Edge nodes cache pre-resolved state artifacts globally close to client applications.
  • Isolates high-frequency client reads from the core transactional engine.
  • Shields control plane infrastructure from demand spikes during major Sev-1 incidents.

4. Cache

Consuming applications embed Runtime SDKs that periodically synchronize state out-of-band via the Runtime API:

  • State is synchronized in the background and cached directly in local application memory.
  • Introduces zero synchronous external network requests into the user interaction path.
  • In the event of network disruption or edge unavailability, SDKs strictly maintain Fail-Safe Defaults or serve last-known-good state.

5. Application Decides Behavior

The host application synchronously inspects local in-memory state to execute its own domain-specific behavior:

  • Decentralized Execution: The control plane communicates the condition; each application independently decides its own behavior.
  • Applications can gracefully disable interaction buttons, display authorized operational messages, bypass failing third-party gateways, or return structured HTTP 503 retry headers.
  • No code deployments or CI/CD pipeline runs are required to adapt client behavior during an incident.

Peacetime Implementation vs. Active Governance

A foundational principle of Operational State Management is that resilience mechanisms must be engineered during peacetime, never improvised during an incident:

PhaseResponsibilityActivities
Peacetime EngineeringProduct & Software EngineersRegister applications and capabilities in the console. Embed Runtime SDKs into applications and build deterministic fallback workflows, graceful degradation paths, and alternative UI states during standard sprint cycles.
Active GovernanceAuthorized Operators & SREsSubmit operational declarations and authorize operational messages during production events according to tested runbooks. Applications adapt immediately across the estate.

On this page