Hey guys, I have question.
Should I use gRPC or RESTin my project?
And is it better to know gRPC or REST?
I want your opinions cause I'm still new to this😁
It depends. gRPC's biggest pros: common contract between caller and callee defined in platform-independent language, http v2 under the hood and the amount of data transferred per call. Limitation is that gRPC can't be used in modern browsers (this is why gRPC-web was developed).
1. If I wanted to set up RPC communication between 2 back end services (imagine it as a part of SOA) I would use gRPC.
2. For web API I would use graphql unless I hit an edge case where I would be forced to use HTTP API.
P.S. if getting a first job is your primary goal I suggest studying HTTP API as it's still widely used and most likely your first job will require knowledge of this thing