DEV Community

loading...

Discussion on: gRPC quick start in Go

Collapse
bimbimprasetyoafif profile image
Bimo Prasetyo Afif • Edited

Hey, i already have golang backend with rest api implemented. can i use grpc without make .proto file ? because i already have service, interface, repo, etc

Collapse
dannypsnl profile image
林子篆 Author

A short answer is it's possible, but that also means you are using HTTP2 directly.
That would make the gRPC became useless. Or you have to implement client/server-side abstraction for RPC.
Therefore I guess you probably can use .proto, just redirect to existed services.

Collapse
bimbimprasetyoafif profile image
Bimo Prasetyo Afif

maybe last option helpful for me. okay i will try it. thanks for suggest me :)