-
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: support dubbo #3224
feat: support dubbo #3224
Conversation
1d991cb
to
95b84d6
Compare
19b6262
to
79596f6
Compare
bd1223e
to
fc4dfc3
Compare
Fix apache#89 Signed-off-by: spacewander <spacewanderlzx@gmail.com>
<dubbo:application name="demo-provider"/> | ||
|
||
<!-- use multicast registry center to export service --> | ||
<dubbo:registry address="multicast://224.5.6.7:1234"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multicast is for test and develop environment, not for the production.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part of code is just provided a test backend, it is not used for prod.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
doc/plugins/dubbo-proxy.md
Outdated
|
||
curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' | ||
{ | ||
"methods": ["GET"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
user example, less is better. so we can remove this line
cd t/lib/dubbo-backend | ||
mvn package | ||
cd dubbo-backend-provider/target | ||
java -Djava.net.preferIPv4Stack=true -jar dubbo-demo-provider.one-jar.jar > /tmp/java.log & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It is better to move t/lib/dubbo-backend
to a separate repo, and only need to download the compiled jar when running CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the content of Java code is depended on what you want to test, it is inconvenient to move it to a separate repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mvn package
+ java -Djava.net.preferIPv4Stack=true
How long does it usually take?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@membphis
32 seconds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is acceptable
README.md
Outdated
@@ -79,6 +79,7 @@ A/B testing, canary release, blue-green deployment, limit rate, defense against | |||
- **Multi protocols** | |||
|
|||
- [TCP/UDP Proxy](doc/stream-proxy.md): Dynamic TCP/UDP proxy. | |||
- [dubbo Proxy](doc/plugins/dubbo-proxy.md): Dynamic HTTP to dubbo proxy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe Dubbo
is better?
t/plugin/dubbo-proxy/route.t
Outdated
|
||
|
||
|
||
=== TEST 5: work with comsumer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: consumer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@spacewander Hi, can you please reply, will the dubbo backend service start automatically when running the test? I opened a PR #9660 that supports the dubbo protocol, and want to reuse the dubbo backend service, but by default, connection refused is returned. |
Signed-off-by: spacewander spacewanderlzx@gmail.com
What this PR does / why we need it:
Pre-submission checklist: