Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

Header propagation over tcp #91

Open
liujiyuan opened this issue Dec 11, 2020 · 4 comments
Open

Header propagation over tcp #91

liujiyuan opened this issue Dec 11, 2020 · 4 comments

Comments

@liujiyuan
Copy link

Header propagation over http works fine.
How to propagation Header over tcp in envoy when Running in isolation mode?

@pragyamehta
Copy link
Contributor

Hi @liujiyuan Could you explain your scenario in detail please? Are you using envoy in your app? If yes, how? An little more detail about your application architecture would help me answer your question :)

This was referenced Dec 11, 2020
@liujiyuan
Copy link
Author

Thank @pragyamehta for your applying.
my scenario is there two server. one is web server, the other is netty server.
Service A is WebServer.
Service B is NettyServer.
How to propagation Header from Service A to Service B over tcp.

@pragyamehta
Copy link
Contributor

Hi @liujiyuan It sounds like you want to know how to propogate the header from Service A (webserver). A web server uses the http protocol. The below documentation can help you in how to forward the header https://code.visualstudio.com/docs/containers/bridge-to-kubernetes#_header-propagation

Let me know if I understood your question correctly. If not, please provide more details about Service A, the protocol it is using to talk to nettyserver, which language etc. A code snippet on how you are making the call to this nettyserver and/or an overview of the architecture and what you are trying to accomplish would also be helpful. Thanks!

@liujiyuan
Copy link
Author

liujiyuan commented Dec 16, 2020

There are three roles: Client、webserver and tcpserver。
client access webserver over http, webserver access tcpserver over tcp.
client invoke a method like this: client--->webserver--->tcpserver. I need propagate header from client to tcpserver.
The doc you given only describe propagate header over http. I need solution is propagating header over tcp from webserver to tcpserver.
client is brower, webserver is asp.net core webapi server, tcpserver is built by dotnetty.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants