SaaS System Context
Define users, external systems and trust boundaries before choosing services. Identity and payment systems are external dependencies.
Editor ↗Start from 69 editable Mermaid templates for software, architecture, planning and data. Adapt the source and preview your diagram in the browser.
Define users, external systems and trust boundaries before choosing services. Identity and payment systems are external dependencies.
Editor ↗Review a shared-database SaaS design with tenant-scoped access, background jobs and storage. Tenant isolation must also be enforced in application and database policies.
Editor ↗Review public-client sign-in with PKCE, state validation and exact redirect matching. For OIDC, also validate ID token issuer, audience and nonce.
Editor ↗Design the rotation-based refresh strategy with atomic token replacement and reuse detection. Serialize refresh requests; sender-constrained tokens are a separate strategy.
Editor ↗Check identity, membership, permission and resource ownership on every request. Never trust a tenant ID supplied by the client as authorization.
Editor ↗Keep database changes and event creation atomic, then deliver events at least once. Consumers must deduplicate because publish acknowledgements can be lost.
Editor ↗Coordinate order steps across services and define compensating actions. Compensation is a business operation, not a global ACID rollback; failed compensation needs retry and reconciliation.
Editor ↗Accept signed events into durable storage before responding, then process asynchronously. Handle duplicates, retries and out-of-order events without promising exactly-once delivery.
Editor ↗Roll out gradually using error, latency and SLO gates. Weights are illustrative; exact traffic splitting requires routing support, and rollback assumes compatible data changes.
Editor ↗Separate compatible schema expansion, resumable backfill and destructive cleanup. Keep the rollback window open until all readers and writers use the new schema.
Editor ↗Design paging around sustained error-budget consumption. Define your SLI, SLO, window lengths and thresholds first; low-traffic services may need separate treatment.
Editor ↗Separate replayable raw ingestion, validated records and business aggregates. Quarantine invalid data and reconcile before publishing downstream datasets.
Editor ↗Distinguish a reusable job from each execution and its input/output datasets. Capture run status and schema/version metadata; this is a lineage model, not an orchestrator.
Editor ↗Model tenant membership and role-based access with explicit join tables. Enforce tenant-consistent foreign keys and uniqueness; resource policies may require additional authorization rules.
Editor ↗Coordinate idempotent setup, bounded retries and cleanup before activating a workspace. A failed cleanup remains visible until an operator resolves residual resources.
Editor ↗Connect a measurable requirement to design and verification artifacts. Replace the example target with an agreed requirement; links express traceability, not proof of compliance.
Editor ↗Separate transport, use cases, domain rules and persistence within one API container. Component boundaries describe responsibilities rather than individual classes.
Editor ↗Compare isolated staging and production deployments. Instance counts are illustrative; use separate credentials and data stores, and never route production traffic into staging.
Editor ↗Move one capability at a time behind a routing facade. Reconcile replicated data before transferring write ownership; rollback after transfer requires a reverse-data plan.
Editor ↗Keep business rules independent of transport and persistence. Arrows show compile-time dependency toward ports and the domain, not runtime message flow.
Editor ↗Review sensitive flows across browser, application and data boundaries. Use STRIDE to examine identity, tampering, repudiation, disclosure, denial of service and privilege escalation at each boundary.
Editor ↗Issue short-lived, size-limited upload permission for one tenant-scoped object. Scan the exact immutable object version before publication; quarantine content must never be publicly readable.
Editor ↗Rotate asymmetric token-signing keys while verifiers temporarily trust both public keys. Retain the old verification key for token lifetime plus clock skew; compromised keys require emergency revocation.
Editor ↗Separate command validation from query projections. Read models are eventually consistent; checkpoint replay and idempotent projection writes, and expose lag to clients that need read-after-write behavior.
Editor ↗Process each queue delivery with one consumer and acknowledge only after durable effects. Visibility timeouts can cause duplicates; preserve business idempotency keys when replaying dead letters.
Editor ↗Protect a failing dependency using a rolling failure window and limited recovery probes. Configure thresholds per service; retries are separate and must respect the breaker and overall request deadline.
Editor ↗Coordinate on-call, incident command, mitigation and stakeholder updates. Separate symptom improvement from recovery confirmation, and assign owners to follow-up actions.
Editor ↗Plan failover with explicit recovery objectives and replication-lag checks. Fence the old writer before promotion to avoid split brain; observed RPO and RTO must come from exercises.
Editor ↗Route traces, metrics and logs through agent and gateway collectors. Configure signal-specific pipelines, bounded queues and retry limits; tail sampling requires consistent trace routing.
Editor ↗Coordinate a consistent initial snapshot with a retained change-log position, then catch up incrementally. Connector-specific snapshot algorithms differ; handle schema changes and missing logs explicitly.
Editor ↗Retry only affected partitions after upstream data is ready. Publish atomically, protect against overlapping runs and decide how late data invalidates downstream aggregates.
Editor ↗Track changes using surrogate keys and half-open validity intervals. Close the prior row and insert its successor atomically; enforce one current row per natural key and deduplicate source changes.
Editor ↗Define owner, schema compatibility and measurable quality rules before publishing a dataset. Quarantine failures and version breaking changes with consumer migration rather than silently changing contracts.
Editor ↗Recompute access from authoritative subscription state and product policy, not event arrival order. Grace periods and cancellation timing are business choices; deduplicate events and reconcile periodically.
Editor ↗Model order lines, expiring stock reservations, split shipments and returns. Transactional stock checks, quantity bounds and cancellation rules must enforce consistency beyond these relationships.
Editor ↗Track first response and resolution clocks separately. This example pauses resolution while waiting for the customer only when the contract allows it; internal waiting does not pause the clock.
Editor ↗Separate requester, approver, procurement, receiving and accounts-payable duties. Match purchase order, receipt and invoice before payment, with an explicit exception approval path.
Editor ↗Trace a cache miss through recursive resolution, then cache answers by TTL. NXDOMAIN differs from NODATA; referrals and aliases can require additional queries, and DNSSEC validation is a separate step.
Editor ↗Show a TLS 1.3 full handshake without client authentication, resumption or 0-RTT. Validate certificate identity and transcript proofs; HelloRetryRequest and cipher negotiation details are omitted.
Editor ↗Authenticate both peers using a full TLS 1.3 certificate handshake, then apply service authorization. A trusted certificate proves identity; it does not automatically grant access to every API.
Editor ↗Trace external HTTPS to ready backend Pods through an Ingress controller. This variant terminates TLS at ingress and uses HTTP internally; re-encryption and certificate verification require explicit configuration.
Editor ↗Use HTTP/1.1 Upgrade over TLS, authenticate the session and validate browser Origin. Recovery cursors and deduplication are application features; browser JavaScript uses application heartbeats rather than raw Ping frames.
Editor ↗Show common TCP establishment and two close paths. FIN consumes sequence space; data may still arrive after a local half-close. Retransmission and timeout handling remain necessary even when not drawn per segment.
Editor ↗Decompose performance, availability and recovery requirements into measurable acceptance artifacts. Values shown are illustrative targets, not guarantees; agree on workload, measurement window and owners.
Editor ↗Compare options on a shared 1–5 rubric where higher is better, including cost efficiency. All scores are illustrative; record evidence, weights and disqualifying constraints before making a decision.
Editor ↗Prioritize illustrative risks using normalized likelihood and impact, not precise probability forecasts. Labels include owners and responses; keep evidence, review dates and residual risk in a linked risk register.
Editor ↗Map current dependencies to their target replacements and order migration waves. Maintain compatibility until consumers move; rollback must account for ownership and data transformations, not only routing.
Editor ↗Plan release gates with explicit upstream and external dependencies plus buffer. Dates and durations are illustrative; replace them with agreed estimates and do not treat the chart as a delivery commitment.
Editor ↗Trace a successful API request through authentication, service logic and database access.
Editor ↗Map service ownership and dependencies before discussing a microservice design.
Editor ↗Explain inheritance and shared behavior in an object-oriented model.
Editor ↗Describe application states and the events that move between them.
Editor ↗Explore posts, authors, comments and tags in a conceptual blog data model.
Editor ↗Explain feature branches, integration and releases to a development team.
Editor ↗Organize sprint work by status and make work in progress visible.
Editor ↗Plan project phases, dates and dependencies on a shared timeline.
Editor ↗Communicate quarterly priorities and the order of planned milestones.
Editor ↗Make decision criteria and alternative outcomes explicit.
Editor ↗Explore customer actions and friction across an online shopping journey.
Editor ↗Compare revenue contributions across example business segments.
Editor ↗Compare monthly example metrics and identify trends over time.
Editor ↗Visualize how users move between stages of a conversion funnel.
Editor ↗Discuss feature priorities using two explicit decision dimensions.
Editor ↗Break a course into modules and related learning topics.
Editor ↗Sequence learning activities and prerequisite knowledge.
Editor ↗Connect study topics to support revision and exploration.
Editor ↗Explain the build, test and approval stages of a delivery pipeline.
Editor ↗Map cloud infrastructure components and their connections.
Editor ↗Inspect the field layout of a TCP packet for protocol study.
Editor ↗