apache / apache/brpc

client端获取RPC调用实际访问过的所有的node IP,包括back request访问的node

Open
#1,362 3 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
C++
Stars
17.6k
Forks
4.1k
Avg merge
2d 12h
Merged PRs (30d)
69

Description

**Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
controller.remote_side()只能返回一个远程node的ip信息,即开启backup request的话就是最先返回的那个节点.

**Describe the solution you'd like (描述你期望的解决方法)**
希望controller提供个接口类似remote_side(),能够在client端获取经过的链路信息,这样就能够知道哪个结点高延迟的.

**Describe alternatives you've considered (描述你想到的折衷方案)**

**Additional context/screenshots (更多上下文/截图)**

Contributor guide

Open the contributing guide

Research direction

Start with the controller.remote_side() API and the backup request path described in the issue. Trace how the client currently records the responding node, then define how an interface could expose every node visited during the RPC chain. Done means clients can retrieve all accessed node IPs and identify which node incurred high latency.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend-api-design, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.