apache / apache/shenyu

[Question] maintain a long connection when forwarding Dubbo requests

Open
#5,389 1 comment 0 reactions 0 assignees View on GitHub
type: enhancement type: question
Dominant language
Java
Stars
8.8k
Forks
3.1k
Avg merge
7d 1h
Merged PRs (30d)
85

Description

### Question

dubbo请求转发时,如何保持长连接

现在请求通过shenyu的dubbo插件转发到后端服务时,每个请求都会进行一次nacos服务发现,连接后端服务,请求服务,断开后端服务,注销nacos记录等操作。
请问,如何让shenyu与后端服务的dubbo协议连接,保持长连接,而不是每次费时的执行那么多步骤。

How to maintain a long connection when forwarding Dubbo requests

Now when a request is forwarded to the backend service through Shenyu's Dubbo plugin, each request will undergo a NACOS service discovery, connect to the backend service, request service, disconnect the backend service, and cancel NACOS records.
May I ask how to connect Shenyu to the Dubbo protocol of the backend service, maintaining a long connection instead of taking so many time-consuming steps each time.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue concerns Shenyu's Dubbo plugin and its NACOS service-discovery flow, but names no files, tests, or entry points. Start by locating the Dubbo plugin's request and service-discovery handling, then verify how connections and NACOS registrations are created and released. Done means forwarding reuses a long-lived backend Dubbo connection without repeating those operations for every request.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.