-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: How to make apisix be the gateway for tars #6570
Comments
We need a C or Lua SDK for tars. Would you like to contribute this feature? |
yes. |
Now that there exists TarsGateway, why does you choose apisix ? @ @zhixiongdu027 😂 |
one gateway proxy all requests is better than propagating to multiple gateways |
Hi, Is there any progress? I want to learn from you, please 😊 |
Issue description
Feat: How to make apisix be the gateway for tars
Background:
TARS is a Linux Foundation project. It is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented
hosting-service via flexible schedule.
Now I want to implement Tars proxy function with apisix, and make apisix be the gateway for tars
What does it look like:
a service discovery plugin (can both work in http module and stream module)
rpc calls to tars are addressed through servants. this discovery plugin will provide translation services from servants to nodes, like:
a tars http proxy
There are two problems in providing tcp services externally:
So there needs to be a gateway to provide http->tcp conversion and proxy
Tars already has an official TarsGateway to do this work, I will refer to it to implement APISix Tars Proxy
a tars tcp proxy
It is also necessary to support tcp proxy:
How to use this:
discovery configuration as follows:
http proxy configuration as follows:
configuration format is based on TarsGateway, with slight changes
tcp proxy configuration as follows:
todo
The text was updated successfully, but these errors were encountered: