DEV Community

Discussion on: Hey developers :D, what you think about gRPC it can replace REST?

Collapse
 
napicella profile image
Nicola Apicella

I think gRPC is something to seriously consider when developing a service which is gonna be called by other services (service to service communication ) instead of users.
Reason being the fact that gRPC allows to establish a contract between services.
Although rest api are really powerful, you have a higher risk of breaking service consumers because of its unstructured nature.
Contract Driven contracts can help with that, but you still have risks.
I have actually wrote an article about Contract Driven contracts and I wanted to write another one about service to service communication in which I wanted to describes the trade off of those solutions.
-Nicola