shenyu
shenyu copied to clipboard
[Question] maintain a long connection when forwarding Dubbo requests
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.
It seems a good idea is that adding a new option for keeping connections.