Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.69 KB

README.md

File metadata and controls

25 lines (16 loc) · 1.69 KB

fallback

problem

There is some problem in apache/dubbo-go when using multiple services under grpc protocol.

More detail, if you use multiple services under grpc protocol, only first service will be invoked successfully by consumers.

reason

  • Because services use the same address (or location in codes), so the srv.Start(url) will be executed only once. Refer to openServer.
  • Then the grpc server on provider side will register the first service. Refer to register in start.

how to fix

disadvantage

  • Because we implement unary rpc by streaming rpc, we cannot use unaryInt.