SfSkills Domains Docs GitHub

Home / architect / mulesoft-anypoint-architecture

mulesoft-anypoint-architecture

Use when designing or evaluating MuleSoft Anypoint Platform deployment topology, runtime model selection, API governance with API Manager, or Anypoint Exchange strategy. Trigger keywords: CloudHub, Runtime Fabric, Anypoint Platform, API Manager, Anypoint Exchange, MuleSoft runtime model, private space, Anypoint Security. NOT for Salesforce-native integration patterns (use integration/api-led-connectivity), NOT for Salesforce Connector configuration in MuleSoft (use integration/mulesoft-salesforce-connector), NOT for MuleSoft flow implementation or DataWeave scripting.

Open the skill folder on GitHub


MuleSoft Anypoint Architecture

Use this skill when selecting a MuleSoft Anypoint Platform runtime model, designing API governance with API Manager, or structuring assets in Anypoint Exchange. This skill covers platform-level topology decisions — it does not cover Salesforce-specific connector configuration or DataWeave scripting.


Before Starting

Gather this context before working on anything in this domain:


Core Concepts

The Four Runtime Models

MuleSoft Anypoint Platform offers four runtime deployment models. Selecting the wrong one is the most common architectural mistake:

Key constraint: Anypoint Security Edge (tokenization proxy) and some Anypoint Security Tokenization features are NOT supported on Runtime Fabric. Verify feature support before selecting RTF for security-sensitive deployments.

API Manager as Governance Layer

API Manager is the governance and policy enforcement layer for Anypoint Platform. Critical behaviors:

Anypoint Exchange as Asset Repository

Anypoint Exchange is the internal and external asset marketplace for the organization:


Common Patterns

Runtime Model Selection

When to use: Every new MuleSoft deployment project.

How it works:

  1. Determine if customer must own Kubernetes infrastructure → Runtime Fabric
  2. Determine if private VPC-level isolation is required without owning Kubernetes → CloudHub 2.0 private space
  3. Determine if fully managed with public routing is acceptable → CloudHub 1.0 or CloudHub 2.0
  4. Determine if existing VM/on-premises infrastructure → Hybrid Standalone

Why not to default to Runtime Fabric: RTF requires the customer to provision, upgrade, and operate Kubernetes clusters. Teams without Kubernetes operations capability will struggle with RTF despite it appearing like a "more enterprise" choice.

API Manager Policy Enforcement Setup

When to use: When deploying a new API and needing to enforce authentication, rate limiting, or threat protection.

How it works:

  1. Register the API in API Manager → creates an API Instance with an Instance ID
  2. Set the API Instance to Active status
  3. Apply policies to the API Instance (e.g., OAuth 2.0, Client ID Enforcement, Rate Limiting)
  4. Add <api-gateway:autodiscovery apiId="${api.id}" flowRef="main"/> to the Mule application
  5. Set api.id in application properties to the API Instance ID
  6. Deploy the Mule application — runtime now contacts API Manager and enforces policies

Why Active status matters: Inactive API Instances have policies configured in API Manager but the runtime receives no policy instructions. The application runs without enforcement and generates no error.


Decision Guidance

SituationRecommended ApproachReason
Fully managed cloud runtime, no compliance/data residency constraintsCloudHub 1.0 or CloudHub 2.0Least operational overhead; MuleSoft manages infrastructure
Need private network isolation without owning KubernetesCloudHub 2.0 with private spaceManaged containers + VPC-level isolation; simpler than RTF
Must own runtime infrastructure (compliance, on-premises hybrid)Runtime Fabric on customer KubernetesCustomer-managed K8s + MuleSoft control plane
Anypoint Security Edge / Tokenization requiredCloudHub 1.0 or CloudHub 2.0Edge/Tokenization not supported on Runtime Fabric
API not enforcing policies despite configurationVerify API Instance is Active + Autodiscovery is configuredInactive status or missing Autodiscovery means no enforcement
Teams need to share and discover reusable integration assetsPublish to Anypoint ExchangeExchange is the platform-native asset marketplace

Step-by-step instructions for an AI agent or practitioner working on this task:

  1. Gather requirements — Determine data residency, compliance requirements, private network access needs, Kubernetes ownership capability, and Anypoint Security feature requirements (Edge, Tokenization)
  2. Select runtime model — Apply the decision table above. Confirm CloudHub vs RTF vs Hybrid. If RTF, confirm the organization has Kubernetes operations capability
  3. Design API Manager governance — Identify which APIs require policies, register API Instances, confirm Active status, define policy sets (OAuth, rate limiting, threat protection), document Autodiscovery configuration
  4. Plan Anypoint Exchange structure — Define asset naming conventions, versioning strategy, and which teams publish vs. consume assets
  5. Validate Anypoint Security feature compatibility — If Edge or Tokenization is required, confirm the selected runtime model supports it before committing to RTF
  6. Document the topology — Produce a deployment topology diagram covering runtime model, API Manager governance points, Exchange asset registry, and private space or VPC configuration
  7. Review against Well-Architected pillars — Confirm security policies are enforced (not just configured), reliability SLAs are compatible with the selected runtime, and operational runbooks exist for the runtime model

Review Checklist

Run through these before marking work in this area complete:


Salesforce-Specific Gotchas

Non-obvious platform behaviors that cause real production problems:

  1. API Manager policies configured but not enforced — An API Instance in Inactive status has all policies configured in API Manager, but the Mule runtime does not receive policy instructions. APIs run unprotected with no error message and no log entry indicating enforcement is disabled.
  2. CloudHub 2.0 is not Runtime Fabric — CloudHub 2.0 uses MuleSoft-managed containers. Runtime Fabric uses customer-managed Kubernetes. Recommending RTF for a "cloud-native" deployment without confirming Kubernetes operations capability creates a significant operational burden the team is not prepared for.
  3. Anypoint Security Edge not supported on Runtime Fabric — Tokenization and Edge policies are only available on CloudHub 1.0 and CloudHub 2.0. Selecting Runtime Fabric for compliance reasons and then discovering Edge is unavailable requires a full runtime model migration.

Output Artifacts

ArtifactDescription
Runtime model selection documentRationale for CloudHub / RTF / Hybrid with requirements mapped to features
API Manager governance planAPI Instance list, policy assignments, Active status checklist, Autodiscovery config
Anypoint Exchange asset inventoryAsset names, versions, owning teams, consumer teams
Deployment topology notesRuntime model, region, private space/VPC config, API gateway enforcement points

Package files