The Database as a Value
Rich Hickey
The Database as a Value Rich Hickey Complexity Out of the Tar Pit - - PowerPoint PPT Presentation
The Database as a Value Rich Hickey Complexity Out of the Tar Pit Moseley and Marks (2006) Complexity caused by state and control Close the loop - process DB Complexity Stateful, inextricably Same query, different results
Rich Hickey
magnitude, quantity, number... or immutable composite thereof
associate with a series of causally related values (states) over time
moment in time
v1 F v2 F v3 F v4
Process events (pure functions)
Observers/perception/memory
States (immutable values)
Identity (succession of states)
Process events (pure functions)
Observers/perception/memory Identity (succession of states)
DB Connection Transactions Queries
The Database Place
F F F
v1 F v2 F v3 F v4
Process events (pure functions)
Observers/perception/memory
States (immutable values)
Identity (succession of states)
DB Connection Transactions DB Values Queries
Storage Indexes DB Engine Memory Indexes Index Merge Log Transaction Processing
App Process Peer Lib Query Cache App Live Index Comm Transactor Indexing Trans- actions Data Segments Data Segments Redundant segment storage Storage Service Segment storage
EAVT t VeAET AEVT db atom nextT asOfT Lucene index history live Lucene sinceT index db value live Storage Hierarchical Cache Roots Memory index (live window) Storage-backed index
Sorted Datoms Index Root
T 42 VeAET AEVT AVET Lucene EAVT Storage Service dirs segs
+ + + + foo
+ + + + bar
+ + +
+ + + +