|
|
|
|
|
by Draiken
2619 days ago
|
|
It's early optimization at the architecture level. I've seen it happen so many times. On top of all you said, the GraphQL stack is horrible for caching. You will not have this problem until you reach really high traffic, but once you do, it will eat you alive. Unlike a rest endpoint, you can't cache a URL. You can't use HTTP headers. You don't know beforehand what GQL query will come and even with batch queries for different types it's super hard to optimize. It's very easy to have an N+1 query hell. The lesson I learned is to use the boring stuff until it really needs to scale up. A REST API with static HTML and some sprinkles of JS will get you to the phase where you actually need to start using React, GQL, etc. GQL trades a lot of things for flexibility, but 99% of the apps don't need that in the first place. But hey, on the upside everyone can put in their resumes that they used all the new hot shit :) |
|
Both Postgraphile and Hasura deal with this. I have no idea about Absinthe.