Re:Arguing against using protobuffers
by hardwaresofton on Thursday October 11, 2018 @05:51AM
(#18192134)
Someone linked to this thing called subZero[0], which seems to be a starter kit that exposes APIs as GraphQL and REST from a Postgres database (it uses postgrest), maybe it's a good example of them working side by side.
When I perform the following 3 individual requests after I performed the above request the results can all be retrieved from cache (at the server and/or client side):
Even when I do the following (without the photo(url) part) it can now just build it from the cache without hitting the database server:GET /user?select=name,friend(name)
That is one of the advantages of using ReST. It allows you to utilize and benefit from already existing proven and well defined infrastructure components (the connectors etc.).
GraphQL can be used on top of this as well. I experimented with this once as an alternative to the PostgReST-like syntax.