Choosing the Right Self-Managed WSO2 API Gateway for Your Needs: Universal, Immutable, and Kubernetes Gateways

Introduction

As API management continues to evolve alongside the adoption of microservices, IoT, and Kubernetes, selecting the right gateway architecture becomes critical. While WSO2 now offers Bijira, a SaaS-based API management platform, this article focuses exclusively on the self-managed deployment options tailored for on-premises, private cloud, and customer-managed public cloud environments.

WSO2’s API management portfolio includes three distinct gateways, each designed to address specific deployment scenarios:

  • Universal Gateway: A Java-based, centralized gateway ideal for on-premises or consolidated deployments where multiple APIs are routed through a single, robust gateway.
  • Immutable Gateway: A fully packaged gateway designed for air-gapped or decentralized deployments, bundling API policies for secure, self-contained operations.
  • Kubernetes Gateway: A lightweight, Envoy-based gateway optimized for Kubernetes environments, scaling seamlessly with backend services and aligning with Kubernetes-native management practices.

Despite their deployment-specific optimizations, all three gateways can be centrally managed through a common control plane, providing unified API management, analytics, and observability across diverse environments. This article explores the capabilities, strengths, and recommended use cases for each gateway, offering guidance on selecting the right gateway to meet performance, scalability, and security requirements.

1. Universal Gateway

WSO2’s Universal Gateway is a robust, centralized solution, designed to handle high-volume traffic and support advanced API mediation scenarios such as content transformation, protocol bridging, conditional routing, and message enrichment. Built to provide full lifecycle API management capabilities, it is ideal for organizations that need an enterprise-grade solution to manage both internal and external API traffic with flexibility and control.

Key Features

  • Broad Protocol Support: The Universal Gateway supports a wide range of protocols including REST, GraphQL, WebSocket, and asynchronous APIs, enabling unified governance across diverse API ecosystems.
  • Advanced Mediation: The gateway offers advanced message mediation capabilities, including content-based routing, payload manipulation, message generation, transformation, and message enrichment, making it highly adaptable to complex integration scenarios.
  • Comprehensive Security Controls: It provides various security policies and fine-grained access control to protect sensitive data across internal and external APIs. In addition to standard security and access control supported in other gateways, the Universal Gateway supports content scanning and payload validation security features.
  • High Throughput and Scalability: Optimized for performance, this gateway handles large volumes of API requests with minimal latency, making it suitable for high-traffic environments.
  • Enhanced Analytics: Integrated with WSO2’s analytics engine, it provides detailed monitoring, logging, and metrics collection to gain insight into API performance, traffic patterns, and security events.

When to Use the Universal Gateway

The Universal Gateway is best suited for organizations that:

  • Need a centralized API management solution with high-throughput capabilities.
  • Require advanced mediation and transformation capabilities for API traffic.
  • Operate in environments where comprehensive security and data governance are essential.
  • Rely on detailed monitoring and analytics to maintain a high level of control over their API ecosystem.

In short, this gateway is ideal for enterprises managing comprehensive API infrastructures with multiple integration points, and where central governance and mediation are critical.

2. Immutable Gateway for Decentralized and Secure Deployments

The Immutable Gateway (formerly known as the WSO2 API Microgateway) is a lightweight, decentralized gateway designed to operate in immutable and secure deployment patterns. It is intended for scenarios where each microservice or API endpoint requires its own dedicated gateway for localized processing or in situations where APIs are deployed in offline or edge environments.

Key Features

  • Lightweight and Decentralized: With a minimal footprint, the Immutable Gateway can run independently alongside microservices without needing a central management plane, making it highly efficient for edge deployments.
  • Mediation and Policy Enforcement: The gateway supports mediation (routing and request/response transformation) and policy enforcement (rate limiting and authentication).
  • Immutable and Secure Deployments: Its design supports immutable infrastructure principles, making it ideal for environments where containers are frequently restarted or replaced. It also offers enhanced security features tailored for edge deployments.
  • Offline and Localized Processing: Suitable for disconnected or low-latency environments, this gateway can process API requests without a constant connection to a centralized management server.
  • Optimized for Edge and IoT: Its ability to handle localized API requests makes it a perfect fit for edge and IoT scenarios, where low latency and minimal resource consumption are prioritized.

When to Use the Immutable Gateway

The Immutable Gateway is best suited for organizations that:

  • Operate in environments where offline or disconnected API management is required, such as remote locations or edge deployments.
  • Require independent API gateways for each service or endpoint in a highly decentralized microservices architecture.
  • Need a low-latency, lightweight gateway for IoT devices or deployments in remote or bandwidth-constrained environments.
  • Follow immutable infrastructure principles and require a gateway that aligns with containerized, ephemeral workloads.

A centralized gateway is often overkill in these scenarios due to its heavier runtime footprint, control plane dependency, and centralized configuration overhead. In edge and IoT deployments, where devices are resource-constrained, ephemeral, or disconnected, a lightweight gateway like the Immutable Gateway is more suitable. It can be deployed per service, starts fast, requires minimal memory, and does not rely on external coordination. This makes it a better fit for decentralized applications where simplicity and autonomy are more important than full feature parity.

3. Kubernetes Gateway: Kubernetes-Native API Management

The Kubernetes Gateway is purpose-built for Kubernetes-native API management. Using an Envoy-based gateway, it adheres to the CNCF Gateway API specification, enabling Kubernetes-native scalability, integration, and management of APIs. This gateway is specifically designed to operate within Kubernetes environments, leveraging Kubernetes features to offer seamless scaling and automation for API management.

Key Features

  • Kubernetes-Native Integration: This gateway is built to integrate natively with Kubernetes, using custom resource definitions (CRDs) to define APIs, policies, and configurations in a declarative, Kubernetes-native manner.
  • Envoy-Based Gateway with CNCF Gateway API Support: The gateway uses Envoy as the core, supporting advanced routing, traffic shaping, and security. The Kubernetes Gateway API specification ensures compatibility and flexibility within the Kubernetes ecosystem.
  • Dynamic Scaling with Kubernetes Autoscaling: By leveraging Kubernetes’ Horizontal Pod Autoscaler (HPA), this gateway can automatically scale based on traffic, ensuring resource efficiency and stability as demand fluctuates.
  • Observability and Telemetry: Integrated with tools like OpenTelemetry, Prometheus, and Grafana, it offers comprehensive observability, enabling developers to trace, monitor, and debug API traffic within a distributed environment.

When to Use the Kubernetes Gateway

The Kubernetes Gateway is best suited for organizations that:

  • Deploy APIs within Kubernetes environments and need a gateway that integrates with Kubernetes-native tools.
  • Require dynamic, containerized scaling to handle variable workloads effectively.
  • Want a declarative API management model using CRDs, which aligns well with GitOps practices for version-controlled configurations.
  • Need comprehensive observability to monitor API health and performance in distributed, multi-cluster environments.

This gateway is ideal for cloud native applications deployed on Kubernetes, where scalability, observability, and seamless integration with Kubernetes resources are critical.

Selecting the Right Gateway for Your Use Case

Decision Matrix

To help select the appropriate gateway, consider the following factors:

Requirement

Universal Gateway

Immutable Microgateway

Kubernetes Gateway

Centralized API management

   

Decentralized, edge, or offline deployments. Immutability

 

 

Support for deploying on Kubernetes and scaling

Kubernetes-native deployments/ replace ingress

   

Advanced API mediation and payload transformation

   

Lightweight, immutable, and secure for microservices

 

 

Declarative API conf. with CNCF Gateway API compatibility

   

Artificial intelligence gateway support

 

Supported protocols

REST, SOAP, GraphQL, WebSocket, WebSub, SSE

REST, SOAP, gRPC, WebSocket

REST, GraphQL, gRPC

Ingress, Egress, and Specialized Gateway Patterns

Beyond traditional ingress API management—where external clients access internal services—organizations are increasingly focused on egress API management, which governs outbound API calls to external systems. This is especially important for scenarios like external data access, AI/LLM integrations, and third-party API compliance.

WSO2 gateways (Universal, Immutable, Kubernetes) support both ingress and egress. However, while the Immutable Gateway can handle egress, the Universal and Kubernetes Gateways are better suited for it. All three can handle modern workloads, including high-throughput AI APIs, with advanced features like token-based rate limiting, adaptive routing, and security enforcement.

In addition to standard ingress and egress needs, many organizations require specialized gateway deployments:

  • Dedicated AI gateways for managing LLM and AI service consumption
  • Egress-only gateways for secure outbound connectivity
  • Lightweight immutable gateways for edge or microservice use cases

WSO2’s API management platform is designed to support all of these patterns. Its unified control plane allows centralized configuration, governance, and monitoring of any combination of universal, Kubernetes, and immutable gateways across hybrid or distributed environments.

Figure 1 illustrates how these gateway types work seamlessly with the control plane, developer tooling, and observability stack to provide secure, scalable, and policy-driven API communication end-to-end.


Figure 1: Internal flow and component architecture of WSO2 API Manager

Conclusion

Each of WSO2’s API gateways addresses specific use cases, ensuring that organizations can select the most effective solution based on their architecture, security needs, and deployment environment. The Universal Gateway is optimal for organizations requiring a centralized, robust solution with comprehensive mediation capabilities. The Immutable Gateway is tailored for decentralized, lightweight deployments at the edge or in offline environments, and the Kubernetes Gateway offers a Kubernetes-native solution designed to integrate seamlessly with cloud native architectures.

Choosing the right gateway is essential for optimizing API performance, security, and scalability, especially as organizations shift to hybrid, containerized, and distributed environments. By aligning the choice of gateway with your deployment environment and operational needs, you can achieve an efficient, scalable, and secure API management strategy.