PELE EDITOR

Mermaid Diagram Templates: 69 Examples

Start from 69 editable Mermaid templates for software, architecture, planning and data. Adapt the source and preview your diagram in the browser.

Choose an editable template

69 / 69
Software Engineering

SaaS System Context

Define users, external systems and trust boundaries before choosing services. Identity and payment systems are external dependencies.

Editor ↗
Software Engineering

Multi-tenant Container Architecture

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 ↗
Software Engineering

OAuth Authorization Code + PKCE

Review public-client sign-in with PKCE, state validation and exact redirect matching. For OIDC, also validate ID token issuer, audience and nonce.

Editor ↗
Software Engineering

Refresh Token Rotation

Design the rotation-based refresh strategy with atomic token replacement and reuse detection. Serialize refresh requests; sender-constrained tokens are a separate strategy.

Editor ↗
Software Engineering

Tenant-scoped Authorization

Check identity, membership, permission and resource ownership on every request. Never trust a tenant ID supplied by the client as authorization.

Editor ↗
Software Engineering

Transactional Outbox

Keep database changes and event creation atomic, then deliver events at least once. Consumers must deduplicate because publish acknowledgements can be lost.

Editor ↗
Software Engineering

Order Saga with Compensation

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 ↗
Software Engineering

Reliable Webhook Processing

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 ↗
DevOps & Infrastructure

Canary Release with Metric Gates

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 ↗
DevOps & Infrastructure

Expand–Migrate–Contract Database Change

Separate compatible schema expansion, resumable backfill and destructive cleanup. Keep the rollback window open until all readers and writers use the new schema.

Editor ↗
DevOps & Infrastructure

Multi-window SLO Burn-rate Alerting

Design paging around sustained error-budget consumption. Define your SLI, SLO, window lengths and thresholds first; low-traffic services may need separate treatment.

Editor ↗
Data & Analytics

Medallion Pipeline with Quality Gates

Separate replayable raw ingestion, validated records and business aggregates. Quarantine invalid data and reconcile before publishing downstream datasets.

Editor ↗
Data & Analytics

Job, Run and Dataset Lineage

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 ↗
Software Engineering

Organization Membership and Permissions

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 ↗
Software Engineering

Tenant Provisioning Lifecycle

Coordinate idempotent setup, bounded retries and cleanup before activating a workspace. A failed cleanup remains visible until an operator resolves residual resources.

Editor ↗
Software Engineering

Requirement–Design–Verification Traceability

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 ↗
Software Engineering

API Component Responsibilities

Separate transport, use cases, domain rules and persistence within one API container. Component boundaries describe responsibilities rather than individual classes.

Editor ↗
DevOps & Infrastructure

Multi-environment Deployment Topology

Compare isolated staging and production deployments. Instance counts are illustrative; use separate credentials and data stores, and never route production traffic into staging.

Editor ↗
Software Engineering

Strangler Migration with Data Ownership

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 ↗
Software Engineering

Hexagonal Architecture Dependency Boundaries

Keep business rules independent of transport and persistence. Arrows show compile-time dependency toward ports and the domain, not runtime message flow.

Editor ↗
Software Engineering

Trust-boundary Data Flow Threat Model

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 ↗
Software Engineering

Signed Upload with Quarantine Scanning

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 ↗
Software Engineering

Signing-key Rotation with Overlap

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 ↗
Software Engineering

CQRS and Rebuildable Read Projections

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 ↗
DevOps & Infrastructure

Competing Consumers and Dead-letter Replay

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 ↗
Software Engineering

Circuit Breaker Lifecycle

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 ↗
DevOps & Infrastructure

Incident Response and Recovery

Coordinate on-call, incident command, mitigation and stakeholder updates. Separate symptom improvement from recovery confirmation, and assign owners to follow-up actions.

Editor ↗
DevOps & Infrastructure

Cross-region Disaster Recovery

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 ↗
DevOps & Infrastructure

OpenTelemetry Agent and Gateway Pipeline

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 ↗
Data & Analytics

CDC Snapshot and Incremental Catch-up

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 ↗
Data & Analytics

Partition Failure and Idempotent Reprocessing

Retry only affected partitions after upstream data is ready. Publish atomically, protect against overlapping runs and decide how late data invalidates downstream aggregates.

Editor ↗
Data & Analytics

SCD Type 2 Dimension History

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 ↗
Data & Analytics

Data Contract and Quality Gates

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 ↗
Business & Management

Subscription and Entitlement Lifecycle

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 ↗
Business & Management

Orders, Reservations and Partial Fulfillment

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 ↗
Business & Management

Support Ticket SLA and Escalation

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 ↗
Business & Management

Procurement Approval and Three-way Match

Separate requester, approver, procurement, receiving and accounts-payable duties. Match purchase order, receipt and invoice before payment, with an explicit exception approval path.

Editor ↗
DevOps & Infrastructure

DNS Resolution and Positive/Negative Caching

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 ↗
DevOps & Infrastructure

TLS 1.3 Full Certificate Handshake

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 ↗
DevOps & Infrastructure

mTLS Service Identity and Authorization

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 ↗
DevOps & Infrastructure

Kubernetes Ingress Traffic and TLS Boundary

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 ↗
DevOps & Infrastructure

WebSocket Reconnect and Stream Recovery

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 ↗
DevOps & Infrastructure

TCP Establishment, Half-close and Simultaneous Close

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 ↗
Software Engineering

Non-functional Requirements and Measurement

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 ↗
Software Engineering

Architecture Option Comparison

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 ↗
Business & Management

Risk Assessment and Response Matrix

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 ↗
Software Engineering

Architecture Change Impact and Migration Waves

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 ↗
Business & Management

Release Dependencies and Milestones

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 ↗
Software Engineering

API Request Flow

Trace a successful API request through authentication, service logic and database access.

Editor ↗
Software Engineering

Microservices Architecture

Map service ownership and dependencies before discussing a microservice design.

Editor ↗
Software Engineering

Class Inheritance

Explain inheritance and shared behavior in an object-oriented model.

Editor ↗
Software Engineering

Application State Machine

Describe application states and the events that move between them.

Editor ↗
Software Engineering

Blog Database Schema

Explore posts, authors, comments and tags in a conceptual blog data model.

Editor ↗
Software Engineering

Git Feature Branch Workflow

Explain feature branches, integration and releases to a development team.

Editor ↗
Business & Management

Sprint Kanban Board

Organize sprint work by status and make work in progress visible.

Editor ↗
Business & Management

Project Timeline

Plan project phases, dates and dependencies on a shared timeline.

Editor ↗
Business & Management

Quarterly Roadmap

Communicate quarterly priorities and the order of planned milestones.

Editor ↗
Business & Management

Decision Process

Make decision criteria and alternative outcomes explicit.

Editor ↗
Business & Management

E-Commerce Customer Journey

Explore customer actions and friction across an online shopping journey.

Editor ↗
Data & Analytics

Revenue Breakdown

Compare revenue contributions across example business segments.

Editor ↗
Data & Analytics

Monthly Metrics Dashboard

Compare monthly example metrics and identify trends over time.

Editor ↗
Data & Analytics

User Conversion Funnel

Visualize how users move between stages of a conversion funnel.

Editor ↗
Data & Analytics

Feature Priority Matrix

Discuss feature priorities using two explicit decision dimensions.

Editor ↗
Education

Course Structure Mindmap

Break a course into modules and related learning topics.

Editor ↗
Education

Learning Path

Sequence learning activities and prerequisite knowledge.

Editor ↗
Education

Study Topic Map

Connect study topics to support revision and exploration.

Editor ↗
DevOps & Infrastructure

CI/CD Pipeline

Explain the build, test and approval stages of a delivery pipeline.

Editor ↗
DevOps & Infrastructure

Cloud Architecture

Map cloud infrastructure components and their connections.

Editor ↗
DevOps & Infrastructure

TCP Packet Structure

Inspect the field layout of a TCP packet for protocol study.

Editor ↗