Principles
Stable, mostly tech-agnostic principles that shape ION architecture. Technology
choices belong in ../decisions/ (ADRs); the realized
architecture belongs in ../well-architected/. Anything
naming a specific Azure service should live in one of those two places, not
here.
Structured in three groups:
- Foundational principles — how the system is decomposed.
- Architecture-style principles — how components collaborate.
- Operational principles — how the platform is run.
The Glossary at the bottom disambiguates vocabulary that differs from common industry usage.
Foundational principles
1. Volatility-based decomposition
The primary decomposition unit is the Area of Volatility (called a system in this documentation). A system contains a set of tightly-related services that share a source of change — a business capability, an external integration, or a regulatory boundary. When that source of change moves, the change is contained inside the owning system and does not cascade platform-wide.
Consequence. ION must integrate with many external systems it does not control (Microsoft Sentinel, Defender XDR, Teams, ServiceNow, threat-intel providers, LLM providers). Without this containment, external volatility would propagate through the platform. Systems act as shock absorbers.
Consequence. Services within a system are more tightly coupled to each other than to services in other systems. That coupling is intentional.
Realized by: ADR-0002
2. Microservices
Services are independently deployable and independently scalable units. Boundaries are drawn to enable independent teams to work independently at speed. A service’s public contract is stable; its internal implementation is not.
Realized by: ADR-0001
3. Domain-Driven Design (DDD) modelling
Business capabilities are modelled as bounded contexts with explicit ubiquitous language, aggregates, and domain events. Event Storming is used to discover integration and domain events collaboratively. The DDD boundary and the volatility boundary sometimes coincide, sometimes not; when they diverge, the volatility boundary wins for physical decomposition and the DDD boundary wins for modelling.
Realized by: ADR-0002
Architecture-style principles
4. Event-driven microservices
Cross-service collaboration is asynchronous, via events on a shared broker (Azure Service Bus — see ADR-0008; Event Hubs only as a bounded protocol adapter at the external integration ingress edge). Synchronous request/response is used only where a UI or an external API demands it, and even then it terminates at a BFF or an APIM-fronted service, not at another domain service.
Realized by: ADR-0001, ADR-0008
5. No direct service-to-service calls
A service never calls another service directly. Every cross-service interaction goes through the shared broker (Service Bus topic / queue — ADR-0008) or through a shared APIM API. If you see a design proposing a direct call, that is a design smell — find the shared hop.
Rationale. Direct calls create tight, invisible coupling that defeats volatility-based decomposition and breaks choreographed scaling. Shared brokers provide throttling, buffering, and observable boundaries for free.
Realized by: ADR-0001, ADR-0008
6. Choreography over orchestration
Services publish events describing what happened; other services subscribe and react. There is no central orchestrator that dictates flow. Each service owns its own decisions and its own error handling.
Trade-off. Choreography makes end-to-end flows harder to trace and reason about; it makes local change cheap and failure containment easy. ION accepts the trace cost in exchange for the coupling and scaling benefits.
Realized by: ADR-0003
7. Event-Carried State Transfer (ECST)
Events carry the state consumers need to act, so that consumers do not query producers back. This decouples consumers from producer availability and schema, and reduces load on producers.
Trade-off. Events are larger. Schema evolution requires care
(see patterns/schema-evolution.md).
Realized by: ADR-0004
8. Event Sourcing (V3)
Every meaningful state transition is captured as an immutable event in an event store. Aggregate state is a projection over the event log; it is recomputable at any time. The event log is the system of record.
Consequence. Full auditability and replayability by construction. Debugging production issues, satisfying compliance queries, and regenerating projections after schema change all reduce to replaying events.
Trade-off. Aggregate design and event granularity become load-bearing decisions (see planned ADRs). Read-side projections must be maintained.
Realized by: ADR-0006, ADR-0007, ADR-0018, ADR-0022 (CQRS read-model projection off the event stores)
9. CloudEvents + AsyncAPI
Event schema: CloudEvents — a portable, versioned envelope with a payload described per event type. Flow description: AsyncAPI — event-driven interfaces are described the way REST APIs are described by OpenAPI.
Rationale. Interoperability, tooling, SDK availability, faster onboarding.
Realized by: (ADRs pending)
10. Trilateral API
Every service exposes three interfaces:
- Publisher — the events it emits.
- Subscriber — the events it consumes.
- REST — its synchronous surface (usually via APIM).
All three are versioned and treated as first-class contracts.
Consequence. A service’s public contract is not just its REST API — its events count too. Breaking event changes are treated like breaking API changes.
Realized by: ADR-0014 (shared APIM ingress and REST API onboarding contract), ADR-0020 (REST + Async REST guidelines for the HTTP leg)
Operational principles
11. Automation First (V3)
Human effort is a scarce, expensive resource; every step in the pipeline that can be automated must be. Humans intervene only where judgment, approval, or customer interaction is required. Automation is not a nice-to-have layered on top — it is the design starting point.
Rationale. ION processes hundreds of thousands of incidents per day at the
V3 planning envelope (~180K/day at 500 customers, ~350K/day at 1,000
customers — see ../context/capacity-model.md).
Linear headcount scaling with incident volume is not viable; the ~96 %
auto-close ratio is the load-shedding lever. Agentic automation (LLM-driven)
is a first-class part of the pipeline, not a bolt-on.
Realized by: ADR-0019
12. Managed Identity for service-to-service authentication
Services authenticate to Azure resources and to each other using Managed Identities. Secrets are minimized; where they exist, they live in Azure Key Vault and are read at runtime, not baked into config.
Realized by: ADR-0009 (Managed Identity requires Entra ID); ADR-0011 (FIC + MI cross-tenant secretless pattern); ADR-0013 (UAMI-per-service, app-roles, BFF user-token boundary, FIC for CI/CD); ADR-0014 (shared ingress policy boundary); ADR-0024 (OIDC/WIF federation for CI/CD pipelines)
13. BFF pattern for frontend access
Each frontend has a Backend For Frontend (BFF) tailored to it. The BFF accepts a user’s JWT, validates it, and uses its own Managed Identity to reach shared resources. Frontends never talk to domain services directly.
Rationale. Aggregation, tailoring, and security boundary separation. Also enables independent evolution of the frontend and the backend.
Realized by: ADR-0009 (BFF validates JWT issued by Entra ID); ADR-0013 (customer/advisor tokens terminate at BFF; downstream calls use the BFF UAMI); ADR-0014 (APIM routes user traffic only to the appropriate BFF); ADR-0022 (Veritas BFF fronts the reporting projection for React dashboards); ADR-0023 (BFF-per-MFE extension of the pattern)
14. Independent scalability
Every service scales on its own axis. The shared broker (Service Bus) absorb burst mismatches between producers and consumers.
Realized by: ADR-0001, ADR-0007, ADR-0008, ADR-0014, ADR-0022 (read path scales independently of write-side event store), ADR-0023 (MFEs deliver and scale independently per domain)
15. Deploy through the same pipeline; environments are isolated
The four environments (apa, bta, gma, prd) are separate
management groups and separate subscriptions. Promotion is by pipeline
(Runway), not by direct edit. See
../well-architected/operational-excellence/cicd-runway/.
Realized by: ADR-0024 (Runway/Kronos/Lib workflows on GitHub Actions, OIDC federation, per-env runners)
Realized by: (ADRs pending)
16. Observability at every layer
Every service emits logs, metrics, and traces. Health checks at every
layer. Alerting is tied to runbooks. See
../well-architected/operational-excellence/observability/.
Realized by: ADR-0015 (layered edge health, WAF, and cross-layer diagnostics); ADR-0021 (observability stack: App Insights + Log Analytics + OpenTelemetry)
17. Failure containment
Dead-letter queues for messages that cannot be processed. Retries with timeouts for transient dependency failure. Idempotent writes so replay is safe. Health checks so a sick instance is drained fast. Explicit degraded-service modes for prolonged partial failure. See the patterns catalog.
Realized by: ADR-0003, ADR-0008, ADR-0015, ADR-0017
18. Data residency & compliance are design constraints
Customer data resides in Switzerland. The only exceptions are the resource types and regions that Security and Legal approved, recorded in ADR-0034. The core data stores (event stores, databases, messaging) have no exception. The primary DR path is cross-Availability-Zone within region, not cross-region. Compliance frameworks (GDPR, HIPAA, PCI DSS) shape data-handling and deletion design. Customer data is partitioned by customer-short + tenant ID + customer ID.
Realized by: ADR-0007 (Cosmos in Switzerland North; per-tenant partition scheme); ADR-0009 (Entra tenant topology; per-customer B2B trust); ADR-0012 (customer users retain home-tenant identity governance); ADR-0017 (DR pair constrained to Swiss North ↔ Swiss West); ADR-0034 (approved regional exceptions)
19. Cost is a design constraint
- Idle running cost per environment: < 250 CHF.
- New feature cost delta: ≤ 5 % of existing cost, or explicit review.
- Bias toward consumption-based resources; auto-scale rather than pre-provision.
Where security requires higher-tier resources, cost trades off consciously and is documented.
Realized by: ADR-0017 (warm spare chosen over active-active; cold spare / redeploy rejected against cost/RTO envelope)
20. Vendor lock-in mitigation
Actively abstract the Microsoft Sentinel and Azure interfaces so that alternative providers remain viable. Concretely: keep integration adapters narrow and behind clear ports; do not bleed provider-specific types into domain code.
Realized by: ADR-0002
21. Azure-native managed services first
Across ION architecture versions, the platform’s default answer to every infrastructure question is an Azure-native, managed (PaaS) service. Third-party solutions — including ones that are technically “slightly better” on a feature checklist — are rejected by default if adopting them means ION has to self-host, patch, monitor, back up, or DR-drill the software itself.
Rationale. ION’s operational leverage comes from one small platform team running many services on top of a managed substrate. Every self-hosted stateful cluster ION owns is a permanent operational tax: 24/7 on-call surface, patch cadence, backup/restore drills, DR runbook, capacity planning, version upgrades, security-advisory response. That tax is paid forever, regardless of feature parity. A managed-service gap is cheaper than a self-hosted operational burden — almost always.
What this means in practice.
- Prefer Azure PaaS over Azure IaaS running open-source software, and over third-party SaaS running similar workloads.
- When an ADR rejects an alternative, “not available as an Azure managed service” is a first-class rejection reason, not an afterthought.
- The comparison bar for a self-hosted or third-party alternative is not “is it better?” — it is “is the feature gap large enough to justify ION owning the operations, forever?”
Documented exceptions. Self-hosting is only accepted when no Azure-managed equivalent covers the required capability. Every exception is a named ADR decision, not a default. The documented V3 exception is:
- Temporal workflow cluster (Cogs) — self-hosted because Azure Durable Functions and Logic Apps do not cover Temporal’s long-lived-workflow + strong-code-first + full-replay execution model at ION’s required scale. Documented in ADR-0019.
A new exception requires an explicit ADR justifying (a) which capability is missing from the Azure PaaS catalogue, (b) why the workaround on an Azure service is insufficient, and (c) who owns the resulting operational burden.
Relationship with § 20 (Vendor lock-in mitigation). These two principles are in deliberate tension and are reconciled by scope:
- § 21 chooses the substrate (Azure PaaS wins by default).
- § 20 constrains how ION code talks to it (narrow adapters, portable schemas, no provider types bleeding into domain code).
ION pays the substrate lock-in cost to buy operational leverage; ION invests in abstraction to keep the code portable if the substrate ever has to move.
Realized by: ADR-0006, ADR-0007, ADR-0008, ADR-0009, ADR-0010, ADR-0011, ADR-0012, ADR-0013, ADR-0015, ADR-0016, ADR-0017
22. Least privilege
Every identity — human, workload, or customer-consented app — is granted the smallest scope that lets it do its job, and nothing more. This applies at every boundary ION operates across:
- Customer-consent boundary — ION requests only the Graph/MDE scopes needed for the intent shape the customer has chosen; unused capability is never bundled into the consent request.
- Azure data-plane — Managed Identities receive data-action-scoped RBAC roles (e.g., Cosmos DB Data Contributor on a single database), not subscription-wide Contributor.
- Human customer-environment access — in V3, Ontinue analysts use Tenant Governance/GDAP remote groups and customer-assigned URBAC rather than standing admin rights or customer-tenant guest projection. Access Packages are historical V2 transport and may remain only as optional upstream governance of Ontinue group membership.
- Service credentials — where credentials must exist, they are single-purpose (one app, one scope shape, one Key Vault secret).
Rationale. Least privilege is the primary lever that turns a compromise into a contained compromise. It is also what customers verify during security review — an over-scoped consent request stalls onboarding.
Realized by: ADR-0010, ADR-0011, ADR-0012, ADR-0013, ADR-0015, ADR-0016, ADR-0033; (more ADRs pending)
23. Blast-radius containment
Every boundary in ION — system, service, credential, app registration, namespace, tenant — is drawn so that a failure or compromise on one side does not disable unrelated capability on the other. Concretely:
- Per-scope app registrations so that a consent revocation or throttling event on one integration surface does not disable the others.
- Per-subscription DLQs on the shared Service Bus so that a poison message in one consumer does not stall siblings.
- Per-system schema and Cosmos partitioning so that a hot partition or schema-migration incident is contained to its owning system.
- Choreography over orchestration at the platform level (§ 6) so that no single orchestrator becomes an availability SPOF across systems.
- Sharded credentials (numbered app versions
-02,-03) so that a throttling ceiling or credential incident on one cohort’s app does not cap the whole customer base.
Rationale. At ION’s scale a single shared-fate failure mode is a platform-wide outage. The design goal is that the answer to “what breaks if X fails?” is always “X, and only what depends on X.”
Realized by: ADR-0003, ADR-0008, ADR-0010, ADR-0011, ADR-0012, ADR-0013, ADR-0015, ADR-0016, ADR-0017, ADR-0033; (more ADRs pending — Event Store DR)
24. Azure Landing Zone architecture best practices
ION follows Microsoft’s Cloud Adoption Framework (CAF) Azure landing zone guidance as the default shape for subscriptions, management groups, identity, networking, connectivity, security, governance, and platform-versus-application separation. Deviating from a landing-zone recommendation requires an explicit ADR justification.
What this means in practice.
- Platform vs. application separation. A dedicated platform team owns shared platform concerns (identity, connectivity, security baselines, policy, monitoring, hub networking). Application/system teams own their spokes and services within that baseline.
- Hub-spoke by default. Connectivity, DNS, egress inspection, and shared network security services live in a hub owned by the platform team. Systems live in spokes with autonomy over their own subnets, NSGs, private endpoints, and application deployments — within policy.
- Environment-per-management-group / subscription boundaries.
apa/bta/gma/prdmap to independent landing-zone units with independent policy, RBAC, and connectivity. - Policy as guardrails, not gates. Azure Policy, RBAC role definitions, and network baselines are pre-provided by the platform team; teams move fast inside those guardrails without opening a ticket for every change.
- Traditional hub-and-spoke topology (per CAF’s network topology guidance) is the ION default; Virtual WAN is not adopted because ION does not have the large-scale multi-region branch/SD-WAN footprint that motivates it.
Rationale — org-structure alignment. Hub-spoke landing zones map cleanly onto ION’s team topology:
- A small platform team operates the hub (connectivity, identity, policy, WAF, egress, DNS). Central control on the hub prevents drift in shared concerns and gives one auditable owner for platform-wide configuration.
- System / application teams operate their spokes with high autonomy — they can add subnets, private endpoints, deployments, scaling, and application-level network policy without waiting on the platform team, as long as they stay within hub-owned guardrails.
- § 22 Least privilege at the org level: RBAC on the hub subscription is restricted to platform-team roles; each spoke’s RBAC is restricted to that system’s team. A compromised spoke credential cannot reconfigure the hub; a platform-team change cannot silently break a system’s application deployment.
- § 23 Blast-radius containment at the network and org boundary: a misconfiguration or compromise in one spoke is contained to that spoke; hub-owned inspection and DNS remain in place.
Rationale — operational leverage. Landing zones give ION the CAF-blessed defaults for identity, connectivity, security, governance, and management group structure. That reduces the amount of foundational infrastructure the platform team has to design from scratch, and gives every new system joining the platform a predictable, opinionated shape to land into.
Realized by: ADR-0016, ADR-0017, ADR-0024; (more ADRs pending — environment isolation, policy baseline)
25. Fully automated deployment — IaC-first, no manual changes
All infrastructure changes MUST go through Infrastructure as Code (Terraform as the primary tool; ARM / Bicep sanctioned as fallback where Terraform provider coverage is missing). All application and infrastructure deployments MUST go through automated pipelines. Manual portal edits in bta / gma / prd are prohibited — direct changes are drift and must be reconciled back into IaC or reverted.
What this means in practice.
- IaC is the source of truth. The state of every Azure resource under ION ownership is expressed in a Terraform module, ARM template, or Bicep file living in the mono-repo. If it isn’t in code, it doesn’t exist for governance purposes.
- Pipelines are the only deploy path. No
azCLI, no portal click-ops, no ad-hocterraform applyfrom a laptop againstbta+ environments. Alpha (apa) is the sandbox where PR-time ephemeral deploys are allowed for validation. - End-to-end traceability. Every production change is traceable from a merged PR → CODEOWNERS approvals → required PR checks → environment approval → OIDC token issue → pipeline run → deployed resource. This is the audit evidence chain for SOC1 / compliance.
- Drift is a defect. Detected drift (via Terraform plan diffs, Azure Policy compliance, resource-level reconciliation) is treated as a bug against the owning team and remediated by promoting the change to code or reverting the manual edit.
- Shared modules over copy-paste. Common resource shapes (Cosmos, Service Bus, Function App, APIM, Front Door, Private Endpoint DNS, etc.) come from platform-owned Terraform modules in
tf-modules/. Services consume; platform team authors.
Rationale. Repeatability, reviewability, and reversibility. IaC + pipelines give ION:
- Auditability — every change is a PR with reviewers, checks, and a deployment record.
- Repeatability — the same code produces the same environment; recovery is
terraform apply, not tribal knowledge. - Blast-radius containment (§ 23) — approvals and gates scope who can change what where.
- Least privilege (§ 22) — pipeline identities (WIF-federated) hold narrow, env-scoped roles; humans do not need standing write access to
prd. - Compliance evidence — SOC1 and equivalent frameworks require demonstrable change control; the PR → check → approval → deploy chain is that evidence, generated as a byproduct of doing the work.
Realized by: ADR-0024.
Vocabulary rules
- Use “system” (Area of Volatility) in all new writing. Only use
“container” when quoting a historical reference file name (e.g.,
Container View- Alya.md). - Use “WAF” to mean Azure Well-Architected Framework. Spell it out on first use in each doc.
- Use “MXDR” (Managed Extended Detection and Response). MDR appears in some historical references — treat as equivalent unless context distinguishes.
- Use “Entra ID”, not “Azure AD” (rebranded). Both may appear in references.
Full documentation-authoring rules are in
../standards/documentation-standards.md.
Glossary
| Term | Meaning |
|---|---|
| Area of Volatility | The scope inside which change from a single source is contained. Materialized as a system. |
| BFF | Backend For Frontend. A service tailored to a specific frontend that aggregates from domain services and validates the user JWT. |
| CloudEvents | Portable, versioned event envelope specification. See https://cloudevents.io/. |
| Container | Historically used in ION references to mean a system (Area of Volatility). Distinct from the C4 container primitive. This documentation uses “system”. |
| DDD | Domain-Driven Design. |
| ECST | Event-Carried State Transfer. Events carry the state consumers need. |
| Event Sourcing | Persistence pattern where every state transition is stored as an immutable event. State is a projection over the event log. |
| GDAP | Microsoft Entra Tenant Governance delegated access: governing-tenant groups are projected as remote tenant groups; Defender URBAC remains separate. |
| IDM | Identity Management. |
| MDR / MXDR | Managed Detection and Response / Managed Extended Detection and Response. MXDR is the current term. |
| MFE | Micro-Frontend. Frontend equivalent of microservices — independently deployable UI fragments. |
| NSG | Network Security Group (Azure). |
| ORR | Operational Readiness Review — a pre-production gate. |
| RBAC | Role-Based Access Control. |
| RPO | Recovery Point Objective — max acceptable data loss during a disaster. |
| RTO | Recovery Time Objective — max acceptable time to restore service after an incident. |
| Rome | Code name for the deployed ION platform. |
| Runway | Code name for the CI/CD platform that deploys ION. |
| SLA / SLO | Service Level Agreement / Objective. |
| System | See Area of Volatility. |
| Trilateral API | A service’s three contracts: Publisher (events out), Subscriber (events in), REST (sync). |
| WAF | Azure Well-Architected Framework (this documentation’s default meaning). Web Application Firewall is also WAF — disambiguate on first use where context is ambiguous. |