3 ms·
GraphQL might work OK though, because it differentiates queries from mutations - so you could have some early logic that says "if this POST request includes a m
by simonw 5y ago
GraphQL might work OK though, because it differentiates queries from mutations - so you could have some early logic that says "if this POST request includes a mutation, replay against the leader - otherwise keep running against the replica".
- mrkurt 5y agoIt's true! We designed this specifically because it works with GraphQL. The exception->replay works by default, and it's easy to send early replay command on GraphQL mutations.
- valzam 5y agoWhat is more you could just have your client send all mutations to one API and all queries to another. I suppose you could do that with REST as well by in Graphql the deliniation is very clear and there are only 2 cases you need to handle.