Skip to content

Snapshot vs Live Events

FlowLayer observability combines point-in-time state with streaming updates.

On /ws connection:

  1. server sends hello
  2. server sends snapshot
  3. server streams live events (service_status, log)
  • snapshot gives deterministic initial state
  • live events keep the view current
  • replay with get_logs fills gaps after reconnect or event loss
  • live log events are best-effort
  • get_logs with after_seq is the continuity mechanism
  • effective_limit in responses is the authoritative bound
  1. store highest seen seq
  2. reconnect
  3. request get_logs with after_seq
  4. merge by sequence number

Use this model for both TUI behavior and custom clients.

References: