Closed zanlichard closed 7 months ago
if the protocol config option in trpc_go.yaml config use http and proto definition by protobuf,it means client access server by gRPC?
No, it is actually HTTP-RPC, refer to: https://github.com/trpc-group/trpc-go/tree/main/http
if we use rpc over http, what's the format of the url path client accessing service ?
trpc-go integrete grpc by codec in trpc-ecosystem,how to modify main.go? like this _ "trpc.group/trpc-go/trpc-codec/grpc" in main.go?
if we use rpc over http, what's the format of the url path client accessing service ?
https://github.com/trpc-group/trpc-go/tree/main/http#custom-url-path
Something like http://ip:port/trpc.app.server.Greeter/SayHello
.
trpc-go integrete grpc by codec in trpc-ecosystem,how to modify main.go? like this _ "trpc.group/trpc-go/trpc-codec/grpc" in main.go?
You may check the examples: https://github.com/trpc-ecosystem/go-codec/blob/main/grpc/examples/clients/grpc/main.go
register under base layer import "trpc.group/trpc-go/trpc-go/codec" codec.Register("grpc", &serverCodec{}, &clientCodec{})
register implicitly add code into main.go as below import _ "trpc.group/trpc-go/trpc-codec/grpc"
what's the difference between gRPC and tgprc?
The tRPC framework itself is an extremely flexible and plugin-based structure. tgrpc is the result of integrating the server/client capabilities of gRPC into the tRPC framework. By using tgrpc, you can leverage various plugin capabilities of tRPC server/client while also interacting with other gRPC server/clients.
No, it is actually HTTP-RPC, refer to: https://github.com/trpc-group/trpc-go/tree/main/http
Does the pan-http rpc service support rpc-web client ? for example nice-rpc-web
"pan-http rpc service" is essentially HTTP service, not of trpc/grpc protocols. You may try to use tgrpc server examples: https://github.com/trpc-ecosystem/go-codec/blob/main/grpc/examples/servers/tgrpc/main.go
"pan-http rpc service" is essentially HTTP service, not of trpc/grpc protocols. You may try to use tgrpc server examples: https://github.com/trpc-ecosystem/go-codec/blob/main/grpc/examples/servers/tgrpc/main.go
Does it have js client ?
You can assume it is served as a normal grpc service, any tool that is used to connect to grpc service can be used with it.
You can assume it is served as a normal grpc service, any tool that is used to connect to grpc service can be used with it.
ok. Thank you!
Preliminary Research
Question
Additional Information