Cloud Native 17 min read

How We Built a Transparent Cross‑Network Dubbo Highway for Cloud‑Native Enterprises

This article details the design and implementation of a transparent cross‑network data‑transfer system built on Dubbo, covering its evolution from early one‑way solutions to a highway architecture, the technical challenges encountered, the applied fixes and community contributions, and the roadmap for future stability, extensibility, and multi‑protocol support.

Alibaba Cloud Native
Alibaba Cloud Native
Alibaba Cloud Native
How We Built a Transparent Cross‑Network Dubbo Highway for Cloud‑Native Enterprises

Introduction

For companies that separate cloud platform and island networks, opening ports for cross‑network communication is costly and not fully controllable. A transparent cross‑network transport network with good top‑level design can balance business support, security, and operational cost.

Cross‑Network Data Transfer System Evolution

Initially, a Dubbo Filter forwarding solution enabled one‑way island‑to‑cloud data transfer. Later, point‑to‑point mesh solutions were added. In late 2022 these were consolidated into a “highway” architecture that standardises cross‑island communication and addresses pain points such as one‑way transfer, high whitelist‑opening cost, platform maintenance overhead, and lack of common features like auditing and tracing.

Highway Architecture

The highway consists of four logical modules: Business Web (data sender), Island Business Center (local virtual provider that forwards via HTTP to the cloud Dubbo gateway), Dubbo Gateway (receives HTTP, performs generic invocation of cloud provider), and Cloud Business Center (regular Dubbo provider). The transport uses an HTTP‑based tunnel that leaves the Dubbo protocol untouched on both ends, providing low‑intrusion for existing services.

Diagram 1
Diagram 1

Key nodes include a client SDK that offers routing without changing Dubbo usage, Dubbo outbound and inbound gateways that proxy traffic, and a unified gateway based on APISIX that can add authentication, auditing, and rate‑limiting.

Technical Challenges and Solutions

1. Client routing – original solutions lacked bidirectional routing and required a local provider. We introduced annotation‑based routing, configuration‑center routing, and thread‑local routing, all transparent to the user.

@DubboReference(check = false, parameters = {"ENV_SHANGHAI", "ALL"}) private DemoService demoService;

2. Dubbo address switching – we leveraged Dubbo’s built‑in route extension but had to fix issues such as incompatibility with Dubbo 2, NPEs, loss of version/group metadata, and retry anomalies. Patches were contributed to the Dubbo community via PRs.

void handleRequest(final ExchangeChannel channel, Request req) throws RemotingException { /* ... */ }

3. Outbound gateway – private protocols cannot be recognised by common load balancers, so we introduced an HTTP‑based tunnel and a central APISIX gateway to reduce whitelist complexity from O(n²) to O(n) and to provide unified observability.

Diagram 2
Diagram 2

4. Extensibility – Dubbo’s early decode stage offers few extension points. We added an ExceptionProcessor SPI that can wrap exceptions and trigger retry logic, and submitted it to dubbo‑spi‑extensions.

Future Plans

We will improve stability (resource isolation, QoS, automated instance replacement), add protocol support (HTTP/Grpc), enhance security (APISIX plugins for auth and audit), and simplify operations with automated configuration workflows. Long‑term we aim to support multiple languages (Go, Python), additional transport layers (MQ), and richer orchestration capabilities.

Diagram 3
Diagram 3
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

MicroservicesDubbogatewayAPISIXcross network
Alibaba Cloud Native
Written by

Alibaba Cloud Native

We publish cloud-native tech news, curate in-depth content, host regular events and live streams, and share Alibaba product and user case studies. Join us to explore and share the cloud-native insights you need.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.