Tagged “Data-Systems”
11 articles with this tag.
- Batch processingProcessing large, bounded datasets: the Unix philosophy as the model for batch jobs, distributed filesystems, MapReduce's map, shuffle and reduce phases, sort-merge, broadcast and partitioned hash joins, handling skew, why batch outputs should be immutable, and how Spark and Flink dataflow engines improve on MapReduce.
- Consistency and consensusThe strongest guarantees a distributed system can offer and what they cost: eventual consistency versus linearizability, the CAP trade-off made precise, causal ordering, Lamport timestamps, total order broadcast, two-phase commit and its blocking problem, consensus algorithms (Raft, Paxos, Zab), and coordination services like ZooKeeper and etcd for leader election and locks.
- Data modelsRelational, document and graph data models compared: the object-relational mismatch, one-to-many versus many-to-many relationships, schema-on-read versus schema-on-write, data locality, declarative versus imperative queries, and property graphs and triple stores — with guidance on choosing a model.
- Encoding and evolutionHow data is encoded for storage and transmission, and how to change its schema without breaking running code: backward and forward compatibility, Java serialization pitfalls, JSON and its number and binary problems, Protocol Buffers and Avro, schema registries, and compatibility rules for databases, REST and RPC, and message brokers.
- Partitioning (sharding)Splitting a dataset across machines: horizontal versus vertical partitioning, partitioning by key range versus by hash, hot spots and skew, local versus global secondary indexes, rebalancing strategies (fixed partitions, dynamic splitting, consistent hashing), request routing, and the cost of cross-shard joins and transactions.
- Reliability, scalability, maintainabilityThe three goals of every data system, made measurable: faults versus failures, hardware, software and human errors; describing load with parameters such as fan-out; measuring performance with percentiles and tail latency; vertical versus horizontal scaling; and operability, simplicity and evolvability.
- ReplicationKeeping copies of data on several machines: single-leader replication with synchronous and asynchronous followers, failover and split brain, replication logs, the problems of replication lag (read-your-writes, monotonic reads, consistent prefix), multi-leader and leaderless replication with quorums, sloppy quorums and conflict resolution.
- Storage enginesHow databases store and find data: append-only logs and hash indexes, SSTables and LSM-trees with compaction and Bloom filters, B-trees with write-ahead logs, write and read amplification, secondary and covering indexes, in-memory databases, OLTP versus OLAP, data warehouses, star schemas and column-oriented storage.
- Stream processingProcessing unbounded event streams: message brokers versus log-based brokers like Kafka, partitions and consumer offsets, keeping systems in sync with change data capture, event sourcing and immutable state, stream analytics, event time versus processing time, window types, stream joins, and exactly-once through idempotence and atomic commit.
- Distributed systems faultsWhy distributed systems are hard: partial failures, unreliable networks and timeouts, why you cannot distinguish a slow node from a dead one, time-of-day versus monotonic clocks, clock skew and last-write-wins, process pauses, the majority deciding truth, leases and fencing tokens, Byzantine faults and system models.
- Transactions and isolationWhat ACID really guarantees, and the concurrency anomalies each isolation level allows: dirty reads and writes, read skew, lost updates, write skew and phantoms. Read committed, snapshot isolation and MVCC, preventing lost updates, and the three ways to get serializability: serial execution, two-phase locking and serializable snapshot isolation.