---
title: "How Airwallex Empowers Global Payment Using Apache APISIX? - API7.ai"
description: "Airwallex resolves technical challenges that data sovereignty brings and makes intelligent routing solutions with the help of Apache APISIX."
url: "https://api7.ai/blog/how-airwallex-empowers-global-payment-through-apache-apisix"
---

[Blog](https://api7.ai/blog)

[Products](https://api7.ai/category/products)[Technology](https://api7.ai/category/technology)[Ecosystem](https://api7.ai/category/ecosystem)[Case Study](https://api7.ai/category/usercase)[Team & Community](https://api7.ai/category/community)

Search

⌘ + K

[Blog](https://api7.ai/blog)

Case Study

# How Airwallex Empowers Global Payment Using Apache APISIX?

Yang Li

November 3, 2021

[Case Study](https://api7.ai/category/usercase)

## Overview

### Challenges

- A significant challenge in data governance as Airwallex’s business expands throughout the world
- Complicated management of various systems and interconnection cause problems in other systems when one problem occurs

### Results

- Stable performance for a **15-month** production environment running
- **99%** of the response delays are within **23 ms** when dynamic routing, multi-tenant rate-limiting, multi-tenant IP whitelist, authentication, and authorization are enabled
- Safe and efficient support of data sovereignty covering more than **50 currencies** in over **130 countries and regions**

## About Airwallex

As a global fintech company, [Airwallex](https://www.airwallex.com/us) has built a global financial platform, with its payment network covering more than 50 currencies in over 130 countries and regions worldwide, and it provides digital fintech products for enterprises.

![Airwallex Business](https://static.api7.ai/apisix-webp/202108/1646626634389-7d9a0a82-a76c-4645-93b6-8a431bb1f9a1.webp?imageMogr2/format/webp)

> This article comes from the interview with Yang Li, Ph.D., Committer of Apache APISIX and Technical Platform Lead of Airwallex, who is responsible for the evolution of Airwallex's technology platform.

## Data Sovereignty Poses Challenge to Airwallex

[Data sovereignty](https://api7.ai/blog/leveraging-api-gateway-for-data-sovereignty-and-data-compliance) is becoming increasingly important in cyberspace data governance. Airwallex serves users in various regions, which naturally involves the problem of data sovereignty.

Before, without the requirement of data sovereignty, data could be placed in Europe and synchronized to Asia or any data center in the world. The data interaction diagram is like this:

![Multi-cluster Interaction](https://static.api7.ai/202108/1635907812257-962b1247-f5ca-448f-904d-fd47c3ea4586.png?imageMogr2/format/webp)

However, in an age where data sovereignty is valued, data is under control, and the previous architecture cannot be adopted. In Europe, only European data can be processed, and similarly, only Asian data can be processed in Asia. The data interaction changes are as below.

![Interaction under data sovereignty environment](https://static.api7.ai/uploads/2023/02/01/63Z7AhJx_2.webp?imageMogr2/format/webp)

As a result, data sovereignty poses a significant challenge for the global business of Airwallex. Airwallex intends to migrate data from Europe to other regions, and it has to ensure that the requirements of third-party countries for data sovereignty are in line with that of the EU.

## Why Does Airwallex Choose APISIX?

When selecting the API gateway, Airwallex mainly compared the main gateway products from six dimensions:

- **Stability**: Airwallex puts great emphasis on ensuring the stability of the API gateway. Among the top 1000 websites in the world, **62.1% are NGINX-based**, which shows that the NGINX-based web servers have passed the test of complex and diverse scenarios in the production environment. Apache APISIX is based on NGINX. Furthermore, the design of **Apache APISIX’s [full dynamic](https://api7.ai/blog/how-nginx-reload-work)** feature also makes it possible to modify the route without reloading and maintaining the long connection of the client. In addition, **Airwallex also conducted stress tests on Apache APISIX, which can still run stably when the CPU usage reaches more than 70%.**

- **Performance**: Every API request will pass through the API gateway. Reducing the [performance](https://api7.ai/blog/apisix-kong-3-0-performance-comparison) loss of the gateway can significantly reduce Airwallex's overall response time of the APIs.

  > "In the PoC, we compared the main gateway products: **the response delay of Apache APISIX is more than 50% lower than that of other gateways**. In addition, Apache APISIX's independent data plane enables independent instances in the clusters, making it inherently support horizontal expansion." Li said.

- **Scalability**: Airwallex needs APISIX to work as an API gateway that supports complex **[authentication](https://api7.ai/blog/api-gateway-authentication), permission control, [service discovery](https://api7.ai/blog/what-is-service-discovery-in-microservices), [rate-limiting](https://api7.ai/blog/rate-limiting-in-api-management), downgrade, load balancing, whitelist, and dynamic routing**.

- **Active Community**: An active community is a key for API Gateway to keep up with the pace of technological evolution.

  > **Apache APISIX’s [community](https://api7.ai/category/community) was active since it was still an Apache incubation project, judging from the number of contributors, issue response time, and the number of Pull Requests.** Li shared.

- **Private deployment**: API gateway is the core technical architecture component of Airwallex, and which deploys the API gateway at the edge of its own private network. **Apache APISIX has good environmental adaptability and can be easily deployed in various environments, including cloud computing platforms.**

- **Business-friendly Open-source License**: The Apache 2.0 License allows Airwallex to modify the code of APISIX and commercialize on it without worrying about vendor lock-in.

## Intelligent Routing Solution of Apache APISIX

**Airwallex chooses Apache APISIX to make an intelligent routing solution**, and it is the Apache APISIX gateway that decides where the data should be processed.

![Airwallex's two-layer gateway](https://static.api7.ai/uploads/2023/02/01/cGg9YfNp_3.webp?imageMogr2/format/webp)

The gateway is composed of two layers. The first layer is responsible for routing requests, determining which data center the request should reach based on the conditions. The second layer takes charge of traffic forwarding.

Moreover, **Airwallex implemented the main functions as custom [plugin](https://api7.ai/blog/how-to-implement-plugin-orchestration-in-api-gateway)s** to upgrade to a new version of Apache APISIX at any time. This way, there won’t be any race condition between Airwallex’s code library and the core code of Apache APISIX’s main repository. However, modifying the core code is necessary sometimes. At this time, Li would try his best to implement these functions in the open-source community. **The contributors in the community are very enthusiastic about discussing functions implementation, and in most cases, they can quickly provide available solutions.**

## How is Airwallex Benefitting from Using APISIX?

Below is a diagram showing Airwallex’s integration with APISIX.

![Integration Diagram of Airwallex and APISIX](https://static.api7.ai/uploads/2023/01/31/Q0LbIb0E_88.webp?imageMogr2/format/webp)

Airwallex takes Apache APISIX as the core component of the microservice gateway model. It is deployed at the edge of the network and provides a general gateway function for all traffic entering Airwallex. The problems it solves include:

- **Data Sovereignty**: For financial infrastructure operating across borders, data sovereignty is a critical regulatory requirement. To this end, **Airwallex developed a dynamic regulatory-compliant routing plugin leveraging the capabilities of Apache APISIX dynamic upstream selection**. Dynamic routing can intelligently select upstreams for request distribution according to the characteristics of user requests, abstracting complex multi-data center collaboration issues from the service layer to the gateway layer. The essence of dynamic routing is to answer two questions: how to group upstream and how to match requests and groups.
- **Isolation in Microservices**: Airwallex hopes that the engineering teams of each microservice can independently control their own services, effectively reduce the cost of communication and coordination, and improve engineering efficiency. This architectural concept requires that infrastructure components shared by various teams, such as API Gateway, can support tenant isolation. **APISIX is perfect for satisfying tenant isolation.** While ensuring the robustness and cost control of the entire system, APISIX allows business teams to configure and expand gateway functions according to their own needs, maintaining the independence of microservice teams and services.
- **Multi-Tenant Rate-Limiting**: In a multi-tenant environment, the traffic characteristics of each tenant are different. Applying the same rate-limiting to different tenants cannot meet commercial needs. **Multi-tenant [rate-limiting](https://api7.ai/blog/rate-limiting-in-api-management) can be more appropriate based on user characteristics.**
- **Multi-Tenant IP Whitelist**: The access IP of each tenant varies in a multi-tenant environment. **Multi-tenant IP whitelist allows each tenant to control its own whitelist without worrying about other users’ invasion of their own resources.**
- **Authentication**: Frequent key update is a critical link to ensure the security of user resources. **APISIX supports not only requests [authentication](https://api7.ai/blog/understanding-microservices-authentication-services) but also dynamic key updates.**
- **Authorization**: The permission management of enterprise applications is very complicated, and different application scenarios have completely different permission management models. **APISIX can verify whether the requesting user has sufficient permissions to access the interface according to the routing configuration and intercept illegal traffic the first time.**

Airwallex’s production environment has been running for **15 months**, and the overall performance is extremely stable. About **99% of the response delays are within 23ms** when dynamic routing, multi-tenant rate-limiting, multi-tenant IP whitelist, authentication, authorization, and other functions are enabled.

**Thanks to the excellent plugin mechanism of Apache APISIX, Airwallex can add private plugins that meet business needs without modifying its core code.** The complete testing system further guarantees the software quality, and you can safely increase the personalized requirements of the plugin while ensuring that the original core logic is not damaged.

## Future plan

Airwallex’s follow-up plan mainly includes three aspects:

1. Use a multi-layer network to split gateway logic into different layers, such as distributing traffic according to data sovereignty or other gateway logic.
2. Easy-to-read and easy-to-use routing management are critical to the success of the API gateway. The routing management needs to be friendly to the developers so that developers can easily understand what the gateway can do for them and how to configure and publish it.
3. Use color-code requests to help implement production environment testing. Using color-code requests of API gateway to implement production environment testing can bring more flexibility and ease of use.

## Looking for APISIX Support?

[Apache APISIX](https://api7.ai/apisix) is an open-source, dynamic, scalable, and high-performance cloud-native API gateway for all your APIs and microservices. Being donated to Apache Software Foundation by API7.ai, APISIX has grown into a top-level open-source Apache project.

Do you want to accelerate your development with confidence like Airwallex? To maximize APISIX support, you need [API7](https://api7.ai/). We provide in-depth support for APISIX and API management solutions based on your needs!

Contact us now: <https://api7.ai/contact>.

More about the interviewee:

![Yang Li, Airwallex](https://static.api7.ai/uploads/2023/01/31/uGbiZnt5_Airwallex2.webp?imageMogr2/format/webp)

Tags:

[APISIX Basics](https://api7.ai/tags/apisix-basics)

[Data Management](https://api7.ai/tags/data-management)

[Finance](https://api7.ai/tags/finance)

Share article link

Share

Related Posts

[![APISIX Boosts Lenovo to Build Lightweight and Decentralized Gateway](https://static.api7.ai/uploads/2023/06/02/pRRqKigM_img_v2_d8efd0f7-2a28-46c2-8ed3-6e59f17cafag.png)](https://api7.ai/blog/lenovo-uses-apisix)

## [APISIX Boosts Lenovo to Build Lightweight and Decentralized Gateway](https://api7.ai/blog/lenovo-uses-apisix)

[![ZYLK Achieves Streamlined IoT Services With APISIX Optimization](https://static.api7.ai/uploads/2023/05/26/y5ur4bey_cover2.png)](https://api7.ai/blog/apache-apisix-zylk)

## [ZYLK Achieves Streamlined IoT Services With APISIX Optimization](https://api7.ai/blog/apache-apisix-zylk)

Table of Contents

- [Overview](#overview)

  - [Challenges](#challenges)
  - [Results](#results)

- [About Airwallex](#about-airwallex)

- [Data Sovereignty Poses Challenge to Airwallex](#data-sovereignty-poses-challenge-to-airwallex)

- [Why Does Airwallex Choose APISIX?](#why-does-airwallex-choose-apisix)

- [Intelligent Routing Solution of Apache APISIX](#intelligent-routing-solution-of-apache-apisix)

- [How is Airwallex Benefitting from Using APISIX?](#how-is-airwallex-benefitting-from-using-apisix)

- [Future plan](#future-plan)

- [Looking for APISIX Support?](#looking-for-apisix-support)

## Related Posts

[![Charting the Future of Urban Connectivity: WeCity Collaborates with APISIX](https://static.api7.ai/uploads/2023/09/20/6ZpgFEMr_WeCity.png)](https://api7.ai/blog/wecity-uses-apisix)

Case Study

September 22, 2023

#### [Charting the Future of Urban Connectivity: WeCity Collaborates with APISIX](https://api7.ai/blog/wecity-uses-apisix)

APISIX has empowered the WeCity team to effortlessly integrate new data sources, apply custom plans and policies, monitor usage, and effectively monetize their data market.

[APISIX Basics](https://api7.ai/tags/apisix-basics)

[API Monetization](https://api7.ai/tags/api-monetization)

[Data Management](https://api7.ai/tags/data-management)

[![Snowball Finance Transforms Its Active-Active Architecture with APISIX](https://static.api7.ai/uploads/2023/05/03/IBgKKCzu_snowball-finance-case.png)](https://api7.ai/blog/snowball-finance-with-apisix)

Case Study

April 28, 2023

#### [Snowball Finance Transforms Its Active-Active Architecture with APISIX](https://api7.ai/blog/snowball-finance-with-apisix)

By implementing Apache APISIX, Snowball Finance has upgraded its internal active-active architecture, providing better services for users.

[APISIX Basics](https://api7.ai/tags/apisix-basics)

[Best API Gateway](https://api7.ai/tags/best-api-gateway)

[Finance](https://api7.ai/tags/finance)

[![API Gateway Architecture of Amber Group](https://static.api7.ai/uploads/2023/01/06/ry9Vpp4D_Amber.png)](https://api7.ai/blog/amber-api-gateway-architecture)

Case Study

January 6, 2023

#### [API Gateway Architecture of Amber Group](https://api7.ai/blog/amber-api-gateway-architecture)

Amber Group uses APISIX as its API gateway to improve developing efficiency and manage traffic of its flagship digital asset platform WhaleFin.

[APISIX Basics](https://api7.ai/tags/apisix-basics)

[Best API Gateway](https://api7.ai/tags/best-api-gateway)

[Finance](https://api7.ai/tags/finance)
