GRPC微服务用户信息传递流程
2023-10-25 13:54:41 2 举报
kratos微服务调用用户身份信息传递
作者其他创作
大纲/内容
http request<middleware>session
service-b127.0.0.2 8000
transport.FromClientContext(ctx)setHeader()
c
b
transport.FromServerContext(ctx)getHeader()
- service-a - 127.0.0.1 8000 - service-b - 127.0.0.2 8000
http request<middleware>transmission
Nacos
request
discovery
httpClient<middleware>transmission
rpc
service-a127.0.0.1 8000
zhang san
<transmission middleware>
register
service-c127.0.0.3 8000
rpchttpclient
0 条评论
下一页