apache / shenyu

Apache ShenYu is a Java native API Gateway for service proxy, protocol conversion and API governance.
https://shenyu.apache.org/
Apache License 2.0
8.44k stars 2.93k forks source link

I want to ask, if the calling method is Dubbo or sofa, is it supported #3726

Closed Summary-wcj closed 2 years ago

Summary-wcj commented 2 years ago

Question

I want to ask, if the calling method is Dubbo or sofa, is it supported

KevinClair commented 2 years ago

see Dubbo proxy

Summary-wcj commented 2 years ago

see Dubbo proxy

Maybe I didn't make it clear. My question is: is it Dubbo or sofa on the consumer side,

Dubbo (consumer) - > Gateway -- > Dubbo or sofa (provider)

KevinClair commented 2 years ago

It sounds a bit strange, why do requests between dubbo services need to go through a gateway?

Summary-wcj commented 2 years ago

It sounds a bit strange, why do requests between dubbo services need to go through a gateway?

We have a scenario where each caller (consumer) may be Dubbo or sofa to call sofa services or Dubbo services. dubbo --> dubbo dubbo-->sofa sofa-->dubbo sofa-->sofa

For example: the consumer is Dubbo and wants to call the sofa service. Does Shenyu support it?

KevinClair commented 2 years ago

Sofa has been supported Dubbo protocol, if you want it, you can use it.However, Dubbo didn't support 'Sofa protocol'. Maybe you should try Http protocol, both of them have been supported.

Summary-wcj commented 2 years ago

Sofa has been supported Dubbo protocol, if you want it, you can use it.However, Dubbo didn't support 'Sofa protocol'. Maybe you should try Http protocol, both of them have been supported.

That is to say, soft -- > gatway -- > Dubbo is supported, right?

KevinClair commented 2 years ago

I don't understand, why need to go through a gateway?

Summary-wcj commented 2 years ago

I don't understand, why need to go through a gateway?

Well, I was confused by you. Is Shenyu a gateway system? Soft -- > gatway -- > Dubbo. If it's strange, how about HTTP requesting Dubbo or soft through Shenyu?

loongs-zhang commented 2 years ago

How about add Sofa protocol SPI in dubbo directly ? @Summary-wcj

Summary-wcj commented 2 years ago

How about add Sofa protocol SPI in dubbo directly ? @Summary-wcj

Sorry, I misunderstood

KevinClair commented 2 years ago

Of course, shenyu is a gateway system.

loongs-zhang commented 2 years ago

@Summary-wcj please close this issue if you think no problem.

loongs-zhang commented 2 years ago

@Summary-wcj If you think there are still problems, please create a new issue.

Jimbean0615 commented 2 years ago

I encountered the same problem, and I think it is a universal problem. So I created a dubbo consumer client myself to solve the problem of how dubbo consumers quickly accessing the Shenyu gateway. See: Dubbo Consumer Client for Shenyu