Hacker News new | ask | show | jobs
by davedx 3812 days ago
> doing anything useful requires multiple dependent queries

That really depends on your API! We have an orchestration layer that exists specifically so our front end does not have to run multiple queries all the time. Most of what our front end does is by running a very small handful of queries.

I think orchestration layers are something most growing/larger orgs strive for, in my experience.

1 comments

If it's actually a REST API then it's going to take multiple queries. Certainly you can put an non REST API in front of it to reduce the queries. Every site does it and every site does it in a different way. GraphQL is built to solve this exact problem in a standard way.
https://news.ycombinator.com/item?id=9280223

What even uses GraphQL, other than Facebook?