shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

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

Open Summary-wcj opened this issue 3 years ago • 12 comments

Question

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

Summary-wcj avatar Jul 18 '22 07:07 Summary-wcj

see Dubbo proxy

KevinClair avatar Jul 18 '22 07:07 KevinClair

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)

Summary-wcj avatar Jul 19 '22 09:07 Summary-wcj

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

KevinClair avatar Jul 19 '22 09:07 KevinClair

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?

Summary-wcj avatar Jul 20 '22 03:07 Summary-wcj

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.

KevinClair avatar Jul 20 '22 03:07 KevinClair

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?

Summary-wcj avatar Jul 20 '22 06:07 Summary-wcj

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

KevinClair avatar Jul 20 '22 08:07 KevinClair

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?

Summary-wcj avatar Jul 20 '22 10:07 Summary-wcj

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

loongs-zhang avatar Jul 20 '22 11:07 loongs-zhang

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

Sorry, I misunderstood

Summary-wcj avatar Jul 21 '22 01:07 Summary-wcj

Of course, shenyu is a gateway system.

KevinClair avatar Jul 21 '22 03:07 KevinClair

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

loongs-zhang avatar Jul 26 '22 03:07 loongs-zhang

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

loongs-zhang avatar Aug 04 '22 14:08 loongs-zhang

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

Jimbean0615 avatar Sep 15 '22 09:09 Jimbean0615