<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Data-Intensive Systems on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/data-systems/</link><description>Recent content in Data-Intensive Systems on Java &amp; Software Architecture Knowledge Hub</description><generator>Hugo</generator><language>en-US</language><copyright>© 2026 Samir Kumar Sahoo (https://github.com/samirsahoo). All rights reserved.</copyright><atom:link href="https://samirsahoo.github.io/design-patterns-hub/data-systems/index.xml" rel="self" type="application/rss+xml"/><item><title>Reliability, Scalability and Maintainability</title><link>https://samirsahoo.github.io/design-patterns-hub/data-systems/reliability-scalability-maintainability/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/data-systems/reliability-scalability-maintainability/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Applications today are usually &lt;strong&gt;data-intensive&lt;/strong&gt; rather than compute-intensive: the hard problems are the amount of data, its complexity and how fast it changes. Such applications are assembled from standard building blocks — databases, caches, search indexes, stream processors, batch jobs — and the application code that glues them together.&lt;/p&gt;</description></item><item><title>Data Models and Query Languages</title><link>https://samirsahoo.github.io/design-patterns-hub/data-systems/data-models-and-query-languages/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/data-systems/data-models-and-query-languages/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A &lt;strong&gt;data model&lt;/strong&gt; is the shape in which an application stores and thinks about its data: tables of rows, nested documents, or a graph of vertices and edges. It is one of the most important design decisions because it shapes not only how the software is written but &lt;strong&gt;how we think about the problem&lt;/strong&gt;. Each layer of a system represents data in terms of the layer below (objects → JSON or tables → bytes → electrical signals), and each layer hides the complexity beneath it.&lt;/p&gt;</description></item><item><title>Storage Engines: Logs, LSM-Trees, B-Trees and Column Stores</title><link>https://samirsahoo.github.io/design-patterns-hub/data-systems/storage-engines/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/data-systems/storage-engines/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A &lt;strong&gt;storage engine&lt;/strong&gt; is the part of a database that decides how data is laid out on disk and in memory, and how it is found again. You rarely write one, but choosing and tuning a database requires knowing roughly what it does. Two families dominate transactional workloads:&lt;/p&gt;</description></item><item><title>Encoding and Schema Evolution</title><link>https://samirsahoo.github.io/design-patterns-hub/data-systems/encoding-and-schema-evolution/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/data-systems/encoding-and-schema-evolution/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;In memory, data lives in objects, lists and maps linked by pointers. To write it to a file or send it over the network, it must be &lt;strong&gt;encoded&lt;/strong&gt; (serialized) into a self-contained sequence of bytes, and &lt;strong&gt;decoded&lt;/strong&gt; on the other side.&lt;/p&gt;</description></item><item><title>Replication: Leaders, Followers, Lag and Quorums</title><link>https://samirsahoo.github.io/design-patterns-hub/data-systems/replication/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/data-systems/replication/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;strong&gt;Replication&lt;/strong&gt; keeps a copy of the same data on several machines connected by a network. Reasons to do it:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;High availability:&lt;/strong&gt; keep working when a machine or a whole data centre fails.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Read scalability:&lt;/strong&gt; serve more reads from more copies.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Latency:&lt;/strong&gt; keep data geographically close to users.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;If data never changed, replication would be trivial: copy it once. All the difficulty comes from &lt;strong&gt;handling changes&lt;/strong&gt;. There are three main approaches: &lt;strong&gt;single-leader&lt;/strong&gt;, &lt;strong&gt;multi-leader&lt;/strong&gt; and &lt;strong&gt;leaderless&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>Partitioning (Sharding): Keys, Hashes, Indexes and Rebalancing</title><link>https://samirsahoo.github.io/design-patterns-hub/data-systems/partitioning/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/data-systems/partitioning/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;strong&gt;Partitioning&lt;/strong&gt;, called &lt;strong&gt;sharding&lt;/strong&gt; in many databases, splits a large dataset into smaller pieces called &lt;strong&gt;partitions&lt;/strong&gt; (shards), each stored on a different node. Each record belongs to exactly one partition. The goal is &lt;strong&gt;scalability&lt;/strong&gt;: spread both the data and the query load across many machines, so the system can grow by adding nodes.&lt;/p&gt;</description></item><item><title>Transactions and Isolation Levels: ACID, Anomalies and Serializability</title><link>https://samirsahoo.github.io/design-patterns-hub/data-systems/transactions-and-isolation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/data-systems/transactions-and-isolation/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A &lt;strong&gt;transaction&lt;/strong&gt; groups several reads and writes into one logical unit: either all of them take effect (&lt;strong&gt;commit&lt;/strong&gt;) or none do (&lt;strong&gt;abort&lt;/strong&gt;, rollback). Transactions let applications ignore whole classes of problems — crashes halfway through, concurrent clients interfering — because the database handles them.&lt;/p&gt;</description></item><item><title>The Trouble with Distributed Systems: Networks, Clocks and Partial Failure</title><link>https://samirsahoo.github.io/design-patterns-hub/data-systems/distributed-systems-faults/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/data-systems/distributed-systems-faults/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;On a single computer, things either work or break completely: a bug or a hardware fault usually crashes the whole machine, and a deterministic program gives the same result each time. In a &lt;strong&gt;distributed system&lt;/strong&gt; — several computers communicating over a network — some parts can fail while others keep running. This is a &lt;strong&gt;partial failure&lt;/strong&gt;, and it is &lt;strong&gt;nondeterministic&lt;/strong&gt;: the same request may succeed, fail, or leave you not knowing which.&lt;/p&gt;</description></item><item><title>Consistency and Consensus: Linearizability, Ordering, 2PC and Raft</title><link>https://samirsahoo.github.io/design-patterns-hub/data-systems/consistency-and-consensus/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/data-systems/consistency-and-consensus/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Given that networks, clocks and nodes are unreliable (see &lt;a href="https://samirsahoo.github.io/design-patterns-hub/data-systems/distributed-systems-faults/"&gt;The Trouble with Distributed Systems&lt;/a&gt;), how do we build systems that still behave predictably? The approach is to find &lt;strong&gt;general-purpose abstractions with useful guarantees&lt;/strong&gt;, implement them once, carefully, and let applications rely on them — just as transactions hide crashes and concurrency.&lt;/p&gt;</description></item><item><title>Batch Processing: Unix Pipes, MapReduce and Dataflow Engines</title><link>https://samirsahoo.github.io/design-patterns-hub/data-systems/batch-processing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/data-systems/batch-processing/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;There are three broad kinds of system:&lt;/p&gt;&#10;&lt;div class="table-wrap" tabindex="0" role="region" aria-label="Table"&gt;&#10;&lt;table&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th&gt;Kind&lt;/th&gt;&#10; &lt;th&gt;Input&lt;/th&gt;&#10; &lt;th&gt;Measured by&lt;/th&gt;&#10; &lt;th&gt;Example&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;strong&gt;Services&lt;/strong&gt; (online)&lt;/td&gt;&#10; &lt;td&gt;A request; respond quickly&lt;/td&gt;&#10; &lt;td&gt;Response time, availability&lt;/td&gt;&#10; &lt;td&gt;A REST API&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;strong&gt;Batch processing&lt;/strong&gt; (offline)&lt;/td&gt;&#10; &lt;td&gt;A large, &lt;strong&gt;bounded&lt;/strong&gt; dataset; runs for minutes or hours&lt;/td&gt;&#10; &lt;td&gt;&lt;strong&gt;Throughput&lt;/strong&gt;&lt;/td&gt;&#10; &lt;td&gt;Nightly reports, search index builds, ML training sets&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;strong&gt;Stream processing&lt;/strong&gt; (near-real-time)&lt;/td&gt;&#10; &lt;td&gt;&lt;strong&gt;Unbounded&lt;/strong&gt; events, processed shortly after they happen&lt;/td&gt;&#10; &lt;td&gt;Latency and throughput&lt;/td&gt;&#10; &lt;td&gt;Fraud detection, live dashboards&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;A &lt;strong&gt;batch job&lt;/strong&gt; reads a fixed set of input files, computes, and writes output files. Nobody waits for it interactively, so it can be optimised for throughput and retried freely when it fails.&lt;/p&gt;</description></item><item><title>Stream Processing: Logs, Change Data Capture, Event Sourcing and Windows</title><link>https://samirsahoo.github.io/design-patterns-hub/data-systems/stream-processing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/data-systems/stream-processing/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Batch processing assumes the input is &lt;strong&gt;bounded&lt;/strong&gt;: a known, finite size, so a job can finish. Real data is &lt;strong&gt;unbounded&lt;/strong&gt;: users keep clicking, sensors keep measuring, orders keep arriving. Running batch jobs every day means results are a day late. &lt;strong&gt;Stream processing&lt;/strong&gt; handles each event shortly after it happens.&lt;/p&gt;</description></item></channel></rss>