ION DocsV3
  • Architecture
    • ION Architecture V2
      • ION V2 — Architecture Overview
      • V2 context
        • V2 capacity model
        • V2 constraints
        • V2 integration boundaries
        • V2 requirements
        • V2 solution strategy
      • V2 Structural Design
        • ION V2 Landscape
        • ION V2 Platform Views
          • ION V2 Delivery and Runway
          • ION V2 Incident-Processing Pipelines
          • ION V2 Platform Networking
          • ION V2 Platform Observability
          • ION V2 Platform Security
        • ION V2 System Context
        • ION V2 Systems
          • Alya System Topology
          • Cogs System Topology
          • Ion IQ System Topology
          • Kingsman System Topology
          • Pigeon System Topology
          • Veritas System Topology
          • Watchtower System Topology
      • V2 evolution and platform lineage
        • Tiberium Origins
          • Tiberium Architecture Overview
          • Tiberium Components Architecture Overview
        • Voyager and the V2 Merge
          • Voyager Architecture Overview
          • Voyager Identity Architecture Overview
          • Voyager Services Architecture Overview
      • V2 Platform Architecture
        • Alya Workbench
          • Mission Brief: Alya (Workbench for Cyber Defenders)
        • Asset Discovery
        • Automation
        • Customer Communications
          • Notification and Escalation Design
        • Reporting and Dashboards
        • Vulnerability Mitigations
      • V2 Well-Architected
        • V2 Reliability
          • Availability Architecture
        • V2 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V2 Security Architecture
          • Teams Notification Security
          • Customer Data and PII
          • V2 Identity
            • Applications and Authorization
            • V2 Identity Architecture
            • Microsoft Entra ID
            • V2 Identity Standard
            • V2 Identity Implementation
              • Application Registration
              • Application Roles
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Managed Identity
            • V2 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Portal Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Customer Environment Access Architecture
            • Customer Environment Access Guidelines
            • Customer Environment Access How-to
    • ION Architecture V3
      • ION V3 Architecture Overview
      • V3 context
        • V3 capacity model
        • V3 constraints
        • V3 integration boundaries
        • V3 requirements
        • V3 solution strategy
      • V3 Structural Design
        • Data and events
          • Archival and retention
          • Event model
          • Event sourcing
          • Event store
          • Micro-frontend interaction
          • Recovery and disaster recovery
          • Replay and reconstruction
          • Reporting and customer analytics
          • Event-sourcing requirements
          • Snapshots
          • UI interaction
        • ION v3 domains
          • Assets domain
            • Assets domain flows
            • Assets domain implementation
            • Assets domain model
          • Customer Collaboration domain
            • Customer Collaboration domain flows
            • Customer Collaboration domain implementation
            • Customer Collaboration domain model
          • Incident domain
            • Incident domain flows
            • Incident domain implementation
            • Incident domain model
          • Investigation domain
            • Investigation domain flows
            • Investigation domain implementation
            • Investigation domain model
          • Remediation domain
            • Remediation domain implementation
            • Remediation domain model
          • Ticket domain
            • Ticket domain flows
            • Ticket domain implementation
            • Ticket domain model
        • ION V3 Landscape
        • ION V3 Platform Views
          • Internal API
            • Internal API architecture
            • Internal API consumer guide
            • Internal API identity and access
            • Internal API implementation
          • Micro-Frontends
            • Micro-Frontends architecture
            • Micro-Frontends capability service (Signet)
            • Micro-Frontends composition
            • Micro-Frontends identity and access
            • Micro-Frontends implementation
            • Micro-Frontends real-time (SignalR)
            • Micro-Frontends routing and ingress
            • Shells and MFEs
          • SOAR Integration
            • SOAR Integration architecture
            • SOAR Integration customer onboarding
            • SOAR Integration Identity and Access Design
            • SOAR Integration implementation
            • SOAR Integration operations
        • ION V3 System Context
        • ION V3 systems
          • Alya
          • Cogs
          • ION IQ
          • Kingsman
          • Pigeon
          • Veritas
          • Watchtower
      • V2 to V3 evolution
        • V2 to V3 architecture delta
        • V2 to V3 decision changes
        • V2 to V3 migration guidance
        • V2 to V3 service impact
      • Well-Architected
        • Cost Optimization
          • Cost Governance
            • Cost Governance Architecture
            • Cost Governance Guidelines
            • Cost Governance Implementation
          • SKU Strategy
            • SKU Strategy Architecture
            • SKU Strategy Guidelines
            • SKU Strategy Implementation
        • Operational excellence
          • Audit Logs
            • Audit Logs Architecture
            • Audit Logs Guidelines
            • Audit Logs Implementation
          • CI/CD Runway
            • CI/CD Runway Architecture
            • CI/CD Runway Guidelines
            • CI/CD Runway Implementation
          • Feature Flags
            • Feature Flags Architecture
            • Feature Flags Guidelines
            • Feature Flags Implementation
          • Incident management
            • Incident management architecture
            • Incident management guidelines
            • Incident management implementation
          • Azure Landing Zone
            • Azure Landing Zone Architecture
            • Azure Landing Zone Guidelines
            • Azure Landing Zone Implementation
          • Notifications
            • Notifications Architecture
            • Notifications Guidelines
            • Notifications Implementation
          • Observability
            • Observability Architecture
            • Observability Guidelines
            • Observability Implementation
        • Performance efficiency
          • Capacity, sizing, and scaling
            • Capacity, sizing, and scaling architecture
            • Capacity, sizing, and scaling guidelines
            • Implement capacity, sizing, and scaling
          • UI responsiveness
            • UI responsiveness architecture
            • UI responsiveness guidelines
            • Implement UI responsiveness
        • V3 reliability
          • Application resilience patterns
          • Critical flows
          • Customer reliability assurance
            • ION Platform reliability and service continuity
            • Customer reliability slides
          • Disaster recovery
            • Disaster recovery architecture
            • Disaster recovery guidelines
            • Disaster recovery implementation
              • DR implementation: API Management
              • DR implementation: App Configuration
              • DR implementation: Application Gateway
              • DR implementation: Azure SQL Database
              • DR implementation: Container Apps
              • DR implementation: Container Registry
              • DR implementation: Cosmos DB
              • DR implementation: Event Hubs
              • DR implementation: Azure Front Door
              • DR implementation: Function Apps
              • DR implementation: Key Vault
              • DR implementation: Log Analytics and Application Insights
              • DR implementation: MySQL Flexible Server (Temporal)
              • DR implementation: PostgreSQL Flexible Server
              • DR implementation: Azure Managed Redis
              • DR implementation: Service Bus
              • DR implementation: SignalR
              • DR implementation: Storage accounts
            • Operational-data replication
            • Disaster recovery operations
          • Edge and routing
            • Azure Application Gateway
              • Azure Application Gateway architecture
              • Azure Application Gateway guidelines
              • Azure Application Gateway implementation
              • Azure Application Gateway resiliency
              • Azure Application Gateway security
            • Azure Front Door
              • Azure Front Door architecture
              • Azure Front Door guidelines
              • Azure Front Door implementation
              • Azure Front Door resiliency
              • Azure Front Door security
          • Event-store disaster recovery (moved)
          • Failure mode analysis
          • Graceful degradation
            • Graceful degradation architecture
            • Graceful degradation guidelines
            • Graceful degradation implementation
          • V3 reliability maturity model
            • V3 reliability maturity assessment
            • Maturity level 2: self-preservation
            • Maturity level 3: recovery readiness
            • Maturity level 4: maintain stability
            • Maturity level 5: stay resilient
          • Multi-region replication
            • Multi-region replication architecture
            • Multi-region replication guidelines
            • Multi-region replication implementation assessment
          • Reliability testing
          • Scaling and headroom
          • Targets and health model
          • Trade-offs and accepted risks
        • V3 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • API Contracts and Asynchronous Operations
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V3 Security Architecture
          • Data protection
            • Data protection architecture
            • Data protection guidelines
            • Data protection implementation guidelines
              • API Management
              • Application Gateway
              • Azure SQL Database
              • Azure Container Apps
              • Azure Cosmos DB
              • Azure Front Door
              • Azure Function Apps
              • Azure Database for MySQL
              • Azure Database for PostgreSQL
              • Data protection procedures
          • V3 Security Guidelines
          • V3 Identity
            • Applications and Authorization in ION V3
            • V3 Identity Architecture
            • Capabilities
            • Microsoft Entra ID for ION V3
            • V3 Identity Standard
            • V3 Identity Implementation
              • App Service Authentication
              • Application Registration
              • Application Roles
              • Customer Azure RBAC
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Mailbox-Scoped Access
              • Managed Identity
              • Workload Identity Federation
            • V3 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Azure RBAC Identity Workflow
              • Customer Portal Identity Workflow
              • Mailbox Access Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Shell and MFE Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Azure Lighthouse
              • Azure Lighthouse implementation
            • GDAP and Tenant Governance
              • Access Packages (legacy)
              • GDAP human access implementation
            • Customer environment access guidelines
            • Multi-tenant Entra apps
              • Multi-tenant Entra apps implementation
            • Teams B2B Direct Connect
              • Teams B2B Direct Connect implementation
          • Network Security
            • Network Security Architecture
            • Network Security Guidelines
            • Network Security Implementation
              • Egress and Static IPs
              • Resource Access Restrictions
          • V3 Security Patterns
    • ION Architecture V4
      • How V4 evolves from V3
  • Principles
  • Patterns
    • Application Permissions Only
    • Async REST
    • Audit Logs (Pattern)
    • Auth / AuthZ
    • Dead Letter Queue (DLQ)
    • Dual Writes (and how to avoid them)
    • ECST — Event-Carried State Transfer
    • Event Hubs Throttling
    • Feature Flags (Pattern)
    • Idempotent Write
    • MFE UI Interaction
    • Notifications (Pattern)
    • Private Data Store Access
    • Schema Evolution
    • Service Bus Topic Throttling
    • UI Interaction with an Event-Sourced Backend
  • Standards
    • API Standard
    • API Standards
    • Coding Standard
    • Coding Standards
    • Documentation Standard
    • Documentation Standards
    • Microservice Standard
    • Microservice Checklist
    • Operational Readiness Standard
    • ORR — Operational Readiness Review Checklist
  • Decisions
    • ADR-0001
    • ADR-0002
    • ADR-0003
    • ADR-0004
    • ADR-0005
    • ADR-0006
    • ADR-0007
    • ADR-0008
    • ADR-0009
    • ADR-0010
    • ADR-0011
    • ADR-0012
    • ADR-0013
    • ADR-0014
    • ADR-0015
    • ADR-0016
    • ADR-0017
    • ADR-0018
    • ADR-0019
    • ADR-0020
    • ADR-0021
    • ADR-0022
    • ADR-0023
    • ADR-0024
    • ADR-0025
    • ADR-0026
    • ADR-0027
    • ADR-0028
    • ADR-0029
    • ADR-0030
    • ADR-0031
    • ADR-0032
    • ADR-0033
    • ADR-0034
  • Services
  • Governance
    • Assumptions
    • Discrepancies
    • V3 reference coverage and conflict matrix
OntinueION Docs
  1. Decisions
  2. Event-Carried State Transfer as the event-shape default

Event-Carried State Transfer as the event-shape default

activeperformance efficiency
decisionsv2v3v4active0004ecstevent-shapeevent-drivenv2-foundational

ADR-0004 — Event-Carried State Transfer as the event-shape default

Forces / Drivers

  • Requirement / Constraint:
    • ../context/requirements.md#nfr-4-latency — NFR-4 End-to-end latency < 5 min under normal load; back-queries add hop count and tail latency.
    • ../context/requirements.md#nfr-2-reliability — NFR-2 Reliability; consumers must not depend on producer availability.
    • ../context/constraints.md#tc-2-external-api-rate-limits — TC-2 External API rate limits (Sentinel 75 writes / 5 min per subscription; Cloudflare 1,200 / 5 min; AbuseIPDB 1,000 / day). Internal back-queries to producers that themselves proxy external systems would compound throttling.
    • ../context/capacity-model.md — 400 domain events/s peak at 1000-cust envelope. With N subscribers per event, thin-notification events would produce 400 × N back-query RPS on each producer.
  • Principle(s) embodied: § 7 Event-Carried State Transfer, § 5 No direct service-to-service calls.
  • WAF pillar optimized: performance-efficiency (primary); reliability, operational-excellence (secondary).

Context

ADR-0001 chose event-driven microservices; ADR-0003 chose choreography as the cross-system collaboration model. Both leave one question open: what shape are the events?

Within event-driven architecture there are three common event shapes:

  1. Notification events (thin). The event says “something happened, ID N, kind K”. Consumers that want the details call the producer’s REST API to fetch them. This is the classic pub/sub notification pattern.
  2. Event-Carried State Transfer (ECST). The event carries the state consumers need to act. Consumers do not call producers back. Producers control what state they publish; consumers project it locally as needed.
  3. Event sourcing at the wire. The event log itself is the source of truth; consumers subscribe to the log and project. This overlaps heavily with ECST but is scoped to persistence (see ADR-0006).

ECST is the choice made here. Event sourcing (ADR-0006) is a compatible, layered choice on top: an event-sourced service naturally publishes ECST events off its append-only log.

The primary force is the ADR-0003 rationale itself. Choreography survives producer degradation only if consumers do not require the producer to be up in order to act. A thin-notification model would resurrect the very coupling ADR-0001 and ADR-0003 rejected — services back-calling each other for data, availability chains, and cascading failure. In a choreography-first platform, notification events without state = synchronous coupling in disguise.

The secondary force is the external-integration rate ceiling (../context/capacity-model.md#subsystem-capacity-budgets). Sentinel’s 75 writes / 5 min per customer subscription is a hard cap. If a producer’s REST API proxies the same downstream (as Watchtower does for Sentinel), then every internal back-query for context re-consumes the same customer-scoped quota that live ingestion + write-back already contests. Fat events (ECST) push that quota-consuming read to the ingestion moment, once per event, instead of once per subscribing consumer per lookup.

The tertiary force is fan-out amplification. At the 1000-cust peak of 400 domain events/s, each event fanning out to a handful of subscribers under a thin-notification model would drive back-query RPS on producers into the low thousands — a load producers would then have to size for, contradicting independent-scaling (§ 14).

There is one legitimate exception: very large payloads (raw log dumps, screenshots, attachments) that would violate broker message-size ceilings (Service Bus and Event Hubs both cap around 1 MB per message). For those, a blob-reference pattern applies: the event carries the identifier and location, the blob lives in Azure Storage with lifecycle-matched retention. This is a bounded exception, not a general fallback.

Decision

ION V2 adopts Event-Carried State Transfer (ECST) as the default event shape for all cross-service, cross-system events:

  • Events carry the state consumers need to act. Consumers do not call producers back for details. Producers decide what state is included in each event type.
  • Schemas are versioned and discoverable via CloudEvents envelopes and AsyncAPI descriptions (ADR-0005). Breaking changes are treated as breaking API changes on the Trilateral API (§ 10).
  • Size budget is explicit. Working targets per the capacity model (../context/capacity-model.md#demand-inputs):
    • Incident payload: ~8 KB
    • Alert payload: ~3 KB
    • Entity payload: ~1 KB
    • Domain event (state transition): ~2 KB
  • Blob-reference is the bounded exception — used only when a payload exceeds the broker per-message ceiling (Service Bus / Event Hubs ~1 MB) or when the payload is materially larger than the working size targets. Blob lifecycle mirrors event retention (hot 6 mo / cold 1 yr per ../context/capacity-model.md#service-targets).
  • Sensitive-field discipline. PII and other sensitive fields carried in ECST events inherit the broker’s encryption posture; per-field encryption or tokenisation is required where broker-at-rest encryption alone is insufficient for compliance (../context/constraints.md#bc-3-compliance).

Alternatives considered

  • Option A — Notification events + REST back-query to producer. Rejected. Reintroduces producer availability as a runtime dependency of every consumer, defeating ADR-0003 choreography. Back-query fan-out at 1000-cust peak drives producers into low-thousands RPS for data they already know. Producers must size for the sum of all subscribers’ read patterns, contradicting independent scaling. Internal back-queries that proxy external systems (Watchtower → Sentinel) compound against external per-customer throttling.
  • Option B — Notification events + a shared read model (BFF-style materialised view). Rejected. A cross-system shared read store becomes a god-object that must know every system’s schema; adds a new system that itself needs DR + scaling + ownership; the read model becomes the availability chain the choreographed platform was designed to avoid. The BFF pattern is retained for UI aggregation (§ 13) but not for cross-service data delivery.
  • Option C — Event sourcing + on-demand consumer projection. Not rejected; scoped separately. Event sourcing (ADR-0006) is the persistence pattern; ECST is the wire pattern. They compose: an event-sourced service emits ECST events off its log. This ADR chooses ECST as the wire default independent of whether the emitting service is itself event-sourced.
  • Option D — Hybrid per-event: thin notification for high-frequency low-value events, fat ECST for state changes. Rejected as a rule. It creates per-event decision fatigue (“does this event need to be thin?”), forces every consumer to reason about which shape it’s receiving, and produces two different failure modes on the same platform. The blob-reference exception covers the one case (oversize payloads) where thin plus out-of-band delivery is genuinely needed.

Rationale

The chosen shape wins because it makes choreography’s consumer autonomy actual rather than nominal, and it turns the platform’s dominant cost centres from producer read APIs (unmanaged, unshared) into broker throughput + event storage (managed, shared, sized in ../context/capacity-model.md).

  • Consumer autonomy. A consumer with the event has everything it needs to decide. No producer call. No producer availability dependency. Choreography’s failure-containment property (ADR-0003) becomes real: if Watchtower’s Sentinel ingestion path degrades, existing enrichment / triage / ticketing on already-published events proceeds unaffected.
  • Fan-out cost bounds. With ECST, doubling the number of subscribers to incident.enriched doubles broker outbound bandwidth (a well-understood, elastic axis) and adds zero load to producers. With thin notifications, doubling subscribers doubles producer read RPS (a service-owned, hard-to-elastic axis). At 1000-cust peak this is the difference between “add messaging units on the shared Service Bus” and “resize the incident-owner service”.
  • External-throttle containment. Producer back-queries that proxy external systems (Watchtower ↔ Sentinel, Kingsman ↔ Recorded Future) would re-consume external customer-scoped quotas per subscriber lookup. ECST forces those reads to happen once, at ingestion, then the event is the source of truth for every consumer.
  • Compatibility with event sourcing. ADR-0006 (Event Sourcing as persistence strategy) becomes a natural evolution: an event-sourced service’s append log is its ECST feed. No impedance mismatch between the persistence pattern and the wire pattern.
  • Compatibility with volatility containment. ADR-0002 requires that a producer’s schema be stable and versioned; ECST honours that by making the event schema the contract. Producers can refactor their internal storage freely as long as their emitted schema is stable — the very independence the decomposition exists to create.

Consequences

Positive

  • Consumers never wait on producers for state; producer degradation is contained.
  • Producer read APIs are not sized for the sum of subscribers’ read patterns.
  • New subscribers add broker fan-out cost, not producer read load.
  • Events are self-describing → replayability and audit are natural (feeds ADR-0006 Event Sourcing).
  • Aligns with Trilateral API (§ 10) — events are first-class contracts, not thin pointers.
  • Bounds internal-cross-service load against external ceilings: TC-2 throttles apply once per ingestion, not once per subscriber lookup.

Negative

  • Larger events. ~1.9 MB/s peak ingress at 1000-cust envelope (../context/capacity-model.md#derived-processing-load) is dominated by ECST payload width. Absorbs into broker sizing but is a real cost.
  • Broker + event-store storage grows with event size × retention. ~416 GB/mo of domain event body + ~551 GB/mo of alert + entity + incident payloads at 1000-cust plan (../context/capacity-model.md#data-volume-and-lifecycle).
  • Sensitive-data surface widens. PII travels in every event, not just in producer-controlled query responses. Requires broker encryption at rest, network isolation, and per-field encryption / tokenisation for the highest-sensitivity fields.
  • Schema evolution discipline is non-optional. A breaking change to an event schema now breaks every consumer, not just “the orchestrator” (see ADR-0005 CloudEvents + AsyncAPI and ../patterns/schema-evolution.md).
  • Broker message-size ceiling (~1 MB) forces the blob-reference pattern for outliers. Requires blob-lifecycle discipline (must match event retention).
  • Consumer-side idempotency is required — at-least-once delivery + full state in event means duplicate events cannot cause duplicate side-effects. See ../patterns/idempotent-write.md.

Neutral / follow-ups

  • Blob-reference pattern for outsized payloads — to be documented as a first-class pattern in ../patterns/.
  • Schema evolution catalogue — backward + forward compatibility rules per event type; enforced at CI.
  • Sensitive-field policy — which fields require per-field encryption / tokenisation; documented in ../well-architected/security/data-protection/.
  • Event size ceiling per event type — publish and enforce (CI check) so the working size budget stays working.

WAF Pillar Impact

  • Primary pillar: performance-efficiency — consumers scale independently of producers; producers do not size for aggregate subscriber read load; broker (elastic) carries fan-out cost instead of producer read APIs (inelastic).
  • Secondary pillars:
    • reliability — consumers unaffected by producer degradation; failure containment (ADR-0003) becomes actual, not nominal.
    • operational-excellence — event schemas are the contract; ownership of an event is clear; adding a subscriber does not require producer-team coordination.
  • Trade-offs:
    • Sacrifices thin-event simplicity for fatter, self-describing events.
    • Sacrifices lower broker storage cost for consumer autonomy.
    • Requires strict schema-evolution and sensitive-field discipline.
    • Adds the blob-reference exception + its lifecycle discipline for outlier payloads.

References

  • ../references/Event Sourcing- Design.md — the V3 event-model design that assumes ECST-shaped events on the wire.
  • ../references/Event Sourcing- Event Model.md — ION’s event-type inventory and per-event content shape.
  • ../references/Architecture- Event Sourcing.md — architectural rationale for events-as-contracts.
  • ../references/Design Pattern- Schema Evolution.md, ../references/Design Pattern- Idempotent Write.md — the two discipline patterns ECST hard-depends on.
  • ../references/Design Pattern- Handling Dual Writes.md — dual-write hazard when producers own both their storage and their event publication.
  • External: Martin Fowler, “What do you mean by ‘Event-Driven’?” — origin of the ECST terminology and its contrast with notification events.

Related ADRs

  • Depends on:
    • ADR-0001 — event-driven substrate.
    • ADR-0003 — choreography relies on consumer autonomy; ECST is what makes that autonomy real.
  • Enables:
    • ADR-0005 — CloudEvents + AsyncAPI as event schema standard (schema discipline ECST hard-depends on).
    • ADR-0006 — Event Sourcing as persistence strategy (event-sourced service naturally emits ECST events).
  • Related:
    • ADR-0002 — event schema is the volatility boundary of the producer; ECST honours that by making the schema the contract.
    • ADR-0008 — Event backbone (shared Service Bus) sizing depends directly on ECST payload sizes.
    • Pattern (pending) — Blob-reference for oversize payloads.

On this page

  • Forces / Drivers
  • Context
  • Decision
  • Alternatives considered
  • Rationale
  • Consequences
  • WAF Pillar Impact
  • References
  • Related ADRs
PreviousChoreography over orchestration for cross-system collaboration
NextCloudEvents + AsyncAPI as the event schema and description standard
Edit on GitHubSecurity