Open-Restaurant-Foundation / documentation

Compiled history and research for the Open Restaurant Foundation.
MIT License
0 stars 0 forks source link

Research gRPC #3

Closed Apexal closed 3 years ago

Apexal commented 3 years ago

Look into gRPC as an alternative to a RESTful API. List the pros and cons for using gRPC in this particular planned architecture.

Apexal commented 3 years ago

Initial research suggests it is too much work...

Apexal commented 3 years ago

Now that I've used it for Network Programming I am more familiar with its pros and cons. Error handling appears to be pretty bad, and use in internal APIs makes more sense than external APIs.

Apexal commented 3 years ago

A big disadvantage of gRPC is that it really only works backend-to-backend and browsers cannot be clients without a bunch of extra effort, compared to simply making HTTP requests in REST.

Apexal commented 3 years ago

As a result of the above considerations, gRPC is deemed not worthy.