|
|
|
|
|
by mwitkow
3346 days ago
|
|
Totally agreed. There are cases where you basically want to deal with well structured web resources: HTML, images etc. For these, HTTP is a perfect fit. What we're replacing with gRPC is usage of REST (URL-encoded resources) + JSON for application APIs, not really Web-resources. What we found is that gRPC is really good at capturing both a resource-oriented API (we use similar conventions to Google's excellent API Design handbook https://cloud.google.com/apis/design/resource_names#resource...) and imperative ones. The major difference we no longer have a weird POST method with `/books/do_recalculation` that breaks the RESTfulness of the API. |
|