Re:Ask HN: Why GraphQL APIs but no Datalog APIs?
by je42 on Monday December 09, 2019 @01:04AM
(#21740711)
The options are not only GraphQL vs REST. In a lot of cases, you can also render server side and push just plain html / components to the client instead.
[ Parent
| on HN ]
Re:Ask HN: Why GraphQL APIs but no Datalog APIs?
by korla on Monday December 09, 2019 @04:00AM
(#21741286)
Aren't you just moving the client to the backend here? As I understand it we are talking about how whoever needs to render the data gets the data. GraphQL vs. REST vs. whatever is still as relevant in the backend-rendered case.
Re:Ask HN: Why GraphQL APIs but no Datalog APIs?
by je42 on Tuesday December 10, 2019 @12:16AM
(#21749804)
Yes, exactly true if you see it from that angle.
From your angle, I guess one other alternative to GraphQL and REST would be RPC. ;)
Re:Ask HN: Why GraphQL APIs but no Datalog APIs?
by korla on Thursday December 12, 2019 @01:35AM
(#21769754)
It absolutely is. It is in fact, one of my preferred ways to design systems when doing it in tight coupling between backend and frontend. Such as in a micro-fronted-style vertical. It’s very effective when the needs of the frontend dictate the needs of the backend.