Skip to content

Message Flow ​

This page walks through what happens when (a) something changes in a monitored service and (b) you click a button in the console. The point is to give operators a feel for the latency, the failure modes, and what shows up where.

If you're trying to understand how fresh a number is or why a command "doesn't seem to do anything," this is the page.

Telemetry: service → browser ​

The five things to know:

  1. Batching is 2 seconds by default. A state change inside a service waits up to one publish interval before it leaves the process. This is the dominant latency in everything you see. A service with 250 or more tenants, databases or endpoints backs off automatically, to as much as 60 seconds.
  2. Heartbeats publish even when nothing changed. Every node sends a heartbeat every 30 seconds whether or not it has telemetry to send, so a node going silent in the UI (amber after 60 seconds, red after 150) means real silence — the process is gone, the broker is unreachable, or the network is partitioned.
  3. Telemetry waits if the console is down — but not indefinitely. The transport holds the messages, and routine telemetry batches carry a ten-minute expiry (heartbeats five heartbeat intervals, at least two minutes — 150 seconds at the default). When the console comes back, anything older is discarded rather than replayed, and the console rebuilds each service's current state from the next snapshot it sends. A service's first batch after it starts, which carries its capabilities, never expires.
  4. Persistence happens before browser update. The console writes to its database first, then pushes to SignalR. If you reload the page, the data is already there — the live push is just to avoid the reload. If the console stops being able to write what it receives, it says so (the ingest-health chip and the critterwatch-system health check) rather than showing the last good state as current.
  5. Per-service ordering is preserved. Telemetry is applied one batch at a time on each console node, in order, so you won't see a stale state from service-A win over a fresh one, even when the console is busy. In a clustered console, each service's telemetry stays on one node while different services' telemetry spreads across the nodes.

Commands: browser → service ​

The things to know:

  1. The console checks before it relays. A command is refused, with a command_rejected naming the reason, when the license does not enable operations, the service is unknown or parked over the licensed service cap, the service has no registered control endpoint to send it to (ServiceUnreachable), or (with an authorizer registered) the caller lacks the capability. A refused command never reaches the service and writes no audit row.
  2. Accepted is not done. When you click "Replay", the console answers command_accepted as soon as it has relayed the command. The service hasn't done the work yet — the work happens asynchronously.
  3. Audit log entries are immediate. The audit log records the command when it is relayed, before the service confirms, with the user and the channel it arrived on (Console or MCP). Where the service reports an outcome, the outcome is written too.
  4. Most commands report their outcome. Projection commands answer with an acknowledgement and then the outcome, dead-letter replays and discards with one dlq_operation_completed per database (followed on the Operations tab), recurring-schedule and compaction commands with their own acks, and a handler that throws with command_failed. The UI resolves its pending state from these. A command with no outcome message of its own is confirmed by the next telemetry batch — the DLQ count drops, the listener reads Paused.
  5. Transient outages are absorbed by the broker. If the target service is down, the command waits on its control queue and runs when it comes back. A service on a client older than 1.1 runs a dead-letter operation but never reports its outcome, so the console marks it Unconfirmed after ten minutes rather than failed.

Where to look when something seems wrong ​

SymptomFirst thing to check
Service is missing from the dashboardService is publishing telemetry — check the broker for a critterwatch queue with messages flowing in.
Service is showing as silent (red heartbeat dot)Process up? Broker reachable from the service? Network path between them OK?
Click did nothingOpen the Audit Log — is the command recorded? If yes, the command left the console; the issue is on the service side or in the transport (a service without the license key refuses operator actions). If no, the console rejected it — the toast names the reason: license, RBAC, unknown service, licensed cap, or no registered control endpoint.
Numbers look stale on one tabGlance at the connection indicator in the header. Yellow / red means SignalR has dropped — the page will reconcile when it reconnects, or refresh manually.
"I changed a setting and it didn't apply"Alert thresholds take effect on the next evaluator pass — typically ≤ 30 seconds. Retention, transport and connection settings live in the console host's configuration and need a console restart. Options on a monitored service's AddCritterWatchMonitoring(...) need that service redeployed.

Operations gating ​

Every state-changing command (Replay, Pause, Drain, Restart, Eject, Add/Remove tenant, etc.) needs a console license whose tier enables operations. On the Free tier, or with an expired license, the corresponding buttons in the UI render disabled with a tooltip explaining why, and a command sent anyway is refused with command_rejected. The monitored service checks its own license key again before it acts. See Licensing.

Read-only queries (the dashboard, the timeline, store inspector) are always allowed — except that a live query to a service parked over the licensed service cap is refused, because reading a parked service live is monitoring it.

The flag comes from the license, not from a setting. To put a licensed console into a "look but don't touch" mode for a production change freeze, register an authorizer and withhold the operator capabilities — see Role-based access control. For AI agents, the MCP server's read-only switch does the same.