---
schema_version: "1"
id: 1792c42600ee1a3b8a53c638b11cb947c234743d5ce717b98cfdec7ffadc8498
title: Flex Gateway Overview
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/gateway/1.9/index.md
canonical_url: https://docs.mulesoft.com/gateway/1.9/
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 25fe5626ba7992898fa938157ec058b6ed40f5230bf139c4875623d21731c3c9
description: MuleSoft Documentation Site
release: "1.9"
latest: false
---
---
product: Omni Gateway
version: 1.9
---

# Flex Gateway Overview

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Anypoint Flex Gateway is an Envoy-based, ultrafast lightweight API gateway designed to manage and
secure APIs running anywhere. Built to seamlessly integrate with DevOps and CI/CD workflows, Flex
Gateway delivers the performance required for the most demanding applications and microservices
while providing enterprise security and manageability across any environment.

The following video provides a quick overview of Flex Gateway:

![](https://play.vidyard.com/3LncCho6hfvbLMKbg1AM28.jpg)

## Flex Gateway Architecture

Flex Gateway comprises two components that work in tandem:

- [Control plane](#control_plane)

- [Runtime](#runtime)

The following graphic diagrams the relationship between these components:

![A flowchart that illustrates the deployment and management of APIs](/mulesoft/current/en-us/gateway/1.9/_images/gateway-concepts-control-plane-diagram.png)

### Control plane

The control plane is a MuleSoft-hosted platform that centralizes management and observability,
enabling you to:

- Build APIs.

- Add policies.

- Deploy APIs into the runtime.

- Monitor APIs in Anypoint API Manager.

- Configure the runtime in Anypoint Runtime Manager.

### Runtime

The gateway runtime receives commands from the control plane and routes and protects the backend
APIs. Built with security in mind, Flex Gateway secures communications between the runtime and the
control plane through mTLS and HTTPs.

## Scaling

A single Flex Gateway can support up to 1,000 backend APIs. For high availability, it is best to
deploy multiple gateways running in parallel. Deploying multiple gateways increases gateway
performance and robustness, and is recommended for high-performance applications that must scale.

## API Instances

Flex Gateway supports HTTP and REST API instances.

Flex Gateway does not natively support SOAP APIs and does not provide any schema validation for XML.
However, you can publish an HTTP API instance to secure any API that uses HTTP protocol.

To publish a SOAP API, refer to [Troubleshooting SOAP APIs](https://docs.mulesoft.com/gateway/1.9/flex-troubleshoot-soap-apis).

## Deployment Types

You can deploy Flex Gateway as a Managed or Self-Managed Flex Gateway. Managed Flex Gateway on
CloudHub 2.0 provides a fully managed option, and Self-Managed Flex Gateway provides more options
and control.

- [Managed Flex Gateway](#managed)

- [Self-Managed Flex Gateway](#self_managed)

### Managed Flex Gateway

Managed Flex Gateway is a fully hosted version of Flex Gateway on CloudHub 2.0, hosted and managed
on the Anypoint Platform by MuleSoft. Managed Flex Gateway provides high availability, autoscaling,
less operational overhead, and regular automatic patches and upgrades. It is designed to simplify
API gateway operation through point-and-click setup, and monitoring, and MuleSoft handles the
maintenance and infrastructure.

In Managed Flex Gateway, each runtime unit is called a gateway instance.

### Self-Managed Flex Gateway

Self-Managed Flex Gateway is a distributed runtime entity that you can install in any cloud data
center or, for testing purposes, on your local laptop. Self-Managed Flex Gateway requires you to
manage the underlying infrastructure. Various installation options are available for the
Self-Managed Flex Gateway, including Docker containers, as a sidecar to a backend application in a
Docker container, as a Kubernetes Deployment, or on various Linux environments.

In Self-Managed Flex Gateway, each runtime unit is called a replica. For high availability, it is
best to deploy Self-Managed Flex Gateway as a cluster with multiple replicas running in parallel.
Using clusters increases gateway performance and robustness, and is recommended for high-performance
applications that must scale.

Self-Managed Flex Gateway includes a Fluent Bit implementation, which enables log output to local
files, or to aggregators such as New Relic, Sumo Logic, and Splunk. You can also configure external
REDIS storage for use with distributed rate limiting and caching. Gateway replicas utilize this
storage as a temporary workspace for rate limit coordination, which is pivotal in preserving
customer service level agreements.

Self-Managed Flex Gateway can be installed in either of these two modes:

- [Self-Managed Flex Gateway in Connected Mode](#connected_mode)

- [Self-Managed Flex Gateway in Local Mode](#local_mode)

### Self-Managed Flex Gateway in Connected Mode

In Connected Mode, the gateway is fully connected to the MuleSoft control plane. This connection
allows for centralized management, observability, and security. Anypoint API Manager enables full
API lifecycle management and policy configuration. Anypoint Runtime Manager enables you to deploy
and configure your gateway.

Choose Connected Mode for a UI-based experience to deploy policies, and for managing and monitoring
the gateway.

### Self-Managed Flex Gateway in Local Mode

You can also configure and manage a standalone gateway that is mostly disconnected from the control
plane. Choose Local Mode for this experience.

> [!NOTE] Flex Gateway deployed in Local Mode only connects to the control plane for registration
> and logging usage metrics.

In Local Mode, you manage all configuration and policy applications with locally stored declarative
configuration files.

Use Local Mode to build CI/CD pipelines for application deployments.

### Summary of Differences

The following table summarizes the differences between Connected Mode and Local Mode.

<table><colgroup><col> <col> <col></colgroup><thead><tr><th></th><th>Connected Mode</th><th>Local Mode</th></tr></thead><tbody><tr><td><div><div><p><strong>Use Case</strong></p></div></div></td><td><div><div><p>Centralize management, observability, and security. Flex Gateway connects to the control plane.</p></div></div></td><td><div><div><p>Operate independently of the control plane in a mostly disconnected manner. Manage with locally stored declarative configuration files. Build CI/CD pipelines.</p></div></div></td></tr><tr><td><div><div><p><strong>Policy Application</strong></p></div></div></td><td><div><div><p>Via API Manager</p></div></div></td><td><div><div><p>Via local declarative configuration files</p></div></div></td></tr><tr><td><div><div><p><strong>Air-Gapped?</strong></p></div></div></td><td><div><div><p>No. Flex Gateway is connected to the control plane.</p></div></div></td><td><div><div><p>No. Flex Gateway is managed locally but only connected to the control plane for registration and usage metrics.</p></div></div></td></tr></tbody></table>

## Deployment and Installation Options

### Managed Deployment Options

You can deploy Managed Flex Gateway on CloudHub 2.0 using Runtime Manager. For details see
[Deploy a Managed Flex Gateway to CloudHub 2.0](https://docs.mulesoft.com/gateway/1.9/flex-gateway-managed-set-up).

### Self-Managed Installation Options

You can install Self-Managed Flex Gateway in a variety of ways:

- A standalone runtime in a Docker container deployed on Heroku from Salesforce

  To learn more, see
  [Mastering API Integration: Salesforce, Heroku, and MuleSoft Anypoint Flex Gateway](https://www.heroku.com/blog/mastering-api-integration-salesforce-heroku-mulesoft-anypoint-flex-gateway/).

- A standalone runtime in a Docker container

- A sidecar to a backend application in a Docker container, thereby protecting a single backend
  application

- A Kubernetes `Deployment` for high-availability, high-performance use cases

- An OpenShift on IBM Power `Deployment` for high-availability, high-performance use cases

- A standalone single runtime or replica on various Linux environments, including:

  - Amazon Linux 2023

  - CentOS 8

  - Debian (Bullseye, Bookworm)

  - Red Hat Enterprise Linux (9)

  - Red Hat Enterprise Linux (9) on IBM Power (ppc64le)

  - SUSE Linux Enterprise (SLES 15 SP3)

  - SUSE Linux Enterprise (SLES 15 SP3) on IBM Power (ppc64le)

  - Ubuntu (Focal, Jammy)

A standalone gateway is good for protecting a limited number of APIs with low transaction volume.
However, for other scenarios, or if high availability and reliability are critical, consider using
an Ingress controller in Kubernetes.

## Version Retirement Dates

For information about Flex Gateway version retirement dates, refer to
[MuleSoft Product Versioning and Back Support Policy](https://www.salesforce.com/en-us/wp-content/uploads/sites/4/documents/legal/Agreements/versioning-back-support-policy.pdf).

## Shared Responsibility

The successful operation of Flex Gateway is a responsibility shared between you and MuleSoft.

### MuleSoft Responsibility

MuleSoft is responsible for:

- Providing and supporting Flex Gateway (including the agent, Envoy package, and Fluent Bit package)

- Providing and supporting a base Helm chart for the installation of Flex Gateway in a Kubernetes
  cluster

- Providing and supporting an online Docker image registry

- Providing and supporting an online package repository for installation on Linux

### Your Responsibility

When running on any target, you are responsible for:

- Maintaining connectivity to the Anypoint Control Plane

- Not running third-party software that interferes with normal Flex Gateway operation, such as
  antivirus, DPI, or application security systems

When running in Kubernetes, you are responsible for:

- Adapting the base Helm chart for your specific needs

- Managing the Kubernetes `Deployment`, including:

  - External load balancing

  - Customizations to `Ingress` resources

  - Log forwarding

  - Monitoring

  - Network ports, NAT gateways, and proxies

  - Container runtime and networking

  - Provisioning and management of the Kubernetes environment, which requires:

    - Your IT team to provision and manage the infrastructure

    - Your network team to configure allowed ports and proxy settings

    - Your security team to verify compliance and obtain security certificates

See [Viewing Usage Reports](https://docs.mulesoft.com/general/usage-reports) for information about your monthly Flex
Gateway usage.

## Next Steps

- [Getting Started with Self-Managed Flex Gateway](https://docs.mulesoft.com/gateway/1.9/flex-gateway-getting-started)
