|
|
|
|
|
by wadetandy
2609 days ago
|
|
> I'm struggling to understand the advantages and disadvantages over REST and GraphQL The "Why Graphiti" page[1] goes into some of this, getting into some comparisons of REST, RPC, and GraphQL, as well as discussing the conventions that make some of Graphiti's approach possible. Disclosure: I'm the other author of Graphiti [1]: https://www.graphiti.dev/guides/why |
|
In my reservations example, if I wanted to get availability, pricing, and content from 3 separate domains in a microservice environment, using this paradigm, I think I still would have to create a 4th endpoint that that combines the 3 in a separate entity called VacationPackages if I wanted to keep separation of concerns.
Otherwise, it might be calling a CMS endpoint, which has an include of availability endpoint, which has a nested include of the pricing endpoint.