why not sql backend
This commit is contained in:
parent
61c13cdcc0
commit
dfc1d19237
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
If you look at the collection of state machines, objects, and state transitions that make up databuild, its tempting to ask, should this be implemented by a SQL database instead with constraint checks and foreign keys?
|
||||
If you look at the collection of state machines, objects, and state transitions that make up databuild, it's tempting to ask, should this be implemented by a SQL database instead with constraint checks and foreign keys?
|
||||
|
||||
TODO
|
||||
Answer: it is tempting! But at its core, databuild models the coordinated state machines of Wants, Partitions, and Job Runs. Compile-time correctness checks of the integrity of the system that are possible via rust with type-state style object state machines and typed object IDs do more to mitigate system integrity risks than foreign key checks mitigate. And after all, we panic on reference errors already, so should detect related issues systematically.
|
||||
|
|
|
|||
Loading…
Reference in a new issue