Made with ScholarlyAsk questions about your own PDFs and videos
Shared by Ahmad Deeb
This material outlines an architectural evolution of data systems, moving from monolithic "all-purpose" databases to unbundled, event-driven, and verifiable architectures (p. 1). The central thesis is that reliability, scalability, and maintainability are the "fundamental geometry" of modern software (p. 2).
The Monolithic Ceiling — Monolithic databases, acting as a "God Object" of storage, create a single point of failure (p. 3). They introduce rigidity, making it difficult to evolve schemas or swap specialized storage, and complexity, as consistency guarantees become expensive and brittle (p. 3).
The Unix Philosophy for Data — Rather than one database performing all tasks, this approach uses specialized tools linked by a unified data flow (p. 5). Examples include using Lucene/Elastic for search (full-text indexing), Redis or Memcached for speed (caching), and column-oriented stores for logic (analytics) (p. 5).
Database as a Stream — This perspective treats a database as a "cache for the event log" (p. 6). Data is managed via materialized views—derived from the source of truth (the log)—which update automatically, similar to formulas in a spreadsheet (p. 6).
The system separates data processing into two distinct paths (p. 7):
The Fragility of 2PC — Two-Phase Commit (2PC) is the standard for consistency, but in large unbundled systems, it leads to cascading failures (p. 9). If the primary DB commits but the search index is down, the transaction aborts and the entire system stalls (p. 9). Availability in this context is the product of the availability of all components, leading to "tightly coupled latency" (p. 9).
Order and Identity — Two principles ensure correctness in event-driven systems (p. 10):
Make from this