by rednafi · 8mo ago · 0 comments
Then the engine would find the best way to resolve the graph and fetch the results. You could still add your imperative logic on top of the fetched results, but you don't concern yourself with the minutiae of resilience patterns and how to traverse the dependency graph.
Commands to go specific microservices with local state persisted in a small DB; queries go to a global aggregation system.
You could also build a fancier federated querying system that combines the two, taking a Mangle query and the analyzing and rewriting it. For that you're on your own though - I prefer developers hand-crafting something that fits their needs to a big convoluted framework that tries to be all things to all people.
Then you can run A,B,C and D from a consistent snapshot of data and get correct results.
The only thing microservices allow you to do if scale stateless compute, which is (architecturally) trivial to scale without microservices.
I do not believe there has been any serious server app that has had a better solution to data consistency than SQL.
All these 'webscale' solutions I've seen basically throw out all the consistency guarantees of SQL for speed. But once you need to make sure that different pieces of data are actually consistent, then you're basicallly forced to reimplement transactions, joins, locks etc.