14 ms·
Two apis: a write interface and a read model interface. Read models are easy to maintain and there is no coupling. The ui asks for a bunch of data and we don’t
by ChicagoDave 3y ago
Two apis: a write interface and a read model interface. Read models are easy to maintain and there is no coupling. The ui asks for a bunch of data and we don’t care what that model looks like. We use events to update and cache read models.
We do care about commands that add and change state. Those are simple apis that have strict property requirements.
Also GraphQL is a horrible invention for quick and dirty work with no regard for long term maintenance. You’d be begging for an eventual big ball of mud.