DUB - call to arms

John Colvin john.loughran.colvin at gmail.com
Thu May 2 20:28:51 UTC 2019


On Thursday, 2 May 2019 at 18:35:10 UTC, Nick Sabalausky 
(Abscissa) wrote:
> On 4/29/19 3:11 PM, H. S. Teoh wrote:
>> But what might help is if the registry allows more complex 
>> queries, like
>> "fetch me all candidate packages satisfying contraints P, Q, 
>> R... ."
>> Single network roundtrip for the entire query, rather than 
>> separate
>> network requests, once per package.  Of course, this puts more 
>> load on
>> the server, which may or may not be a good thing, I'm not sure.
>
> GraphQL: https://graphql.org/  (Forget where I came across it, 
> but it was just recently.)
>
> And yes, you're pretty much right about the tradeoff between 
> REST vs GraphQL. Choosing between them is about balancing 
> "minimizing server trips" (GraphQL) vs "maximizing 
> cacheability" (REST).

http://code.dlang.org/packages/graphqld


More information about the Digitalmars-d mailing list