What is Nostr?
feld /
npub1yck…ujmw
2023-07-10 17:57:11
in reply to nevent1q…rww8

feld on Nostr: > Not really. At least, if you contort a REST API to do what GraphQL can do, it loses ...

> Not really. At least, if you contort a REST API to do what GraphQL can do, it loses the advantages of REST APIs. The singular advantage of a REST API is that they are highly cacheable.

How do you mean? Design the REST API to allow specifying what fields you want returned, and make it do that. The caching proxy should include the POST parameters when caching the unique response. I could do this with Varnish pretty easily.
Author Public Key
npub1yck44z5zqxmwpqzqs75ay6ffjdw843ng9p6mz0lzfff3fgz2djlsngujmw