-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
支持bRPC网关转发baidu协议请求的功能 #2405
Comments
#2406 实现baidu协议meta中传递用户自定义字段的特性 |
related issue: #1444 |
功能3的意思是用户可以不用pb协议,使用其它类型协议也可以是吗?c++客户端到服务端直接这样可以吗?中间不用加一层代理。 |
要求能跟pb互转,例如json。
可以的。HTTP body类似。 |
为啥需要和pb互转呢?我理解这个过程bRPC完全透传了用户的消息,不用做任何处理,就类似attachment。 |
嗯嗯,网关只转发baidu协议请求的话,是不需要json、pb互转的。 扩展一下,网关要支持多语言(php、nodejs、python等)接入baidu协议的brpc服务的话,client的payload一般使用json,网关负责服务发现和转发payload,brpc服务需要支持json、pb互转的能力。 |
稍微修改了一下原来的描述。 |
Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)
目前brpc框架不支持bRPC网关服务高效地转发baidu协议的请求——只反序列化meta部分,直接转发payload,无需反序列化payload。
Describe the solution you'd like (描述你期望的解决方法)
Describe alternatives you've considered (描述你想到的折衷方案)
Additional context/screenshots (更多上下文/截图)
The text was updated successfully, but these errors were encountered: