<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Read-Scaling on IT Comparison</title><link>https://comparison.metacog.co.kr/tags/read-scaling/</link><description>Recent content in Read-Scaling on IT Comparison</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 06 Sep 2026 09:47:10 +0900</lastBuildDate><atom:link href="https://comparison.metacog.co.kr/tags/read-scaling/index.xml" rel="self" type="application/rss+xml"/><item><title>Primary vs Replica Reads: Strong Consistency vs Read Scaling</title><link>https://comparison.metacog.co.kr/posts/2026-09-06-primary-vs-replica-reads-strong-consistency-vs-read-scaling/</link><pubDate>Sun, 06 Sep 2026 09:47:10 +0900</pubDate><guid>https://comparison.metacog.co.kr/posts/2026-09-06-primary-vs-replica-reads-strong-consistency-vs-read-scaling/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;/h2&gt;
&lt;p&gt;In a replicated database, read queries can be routed to the &lt;strong class="kw"&gt;primary&lt;/strong&gt; node or to one of the &lt;strong class="kw"&gt;read replicas&lt;/strong&gt;. The choice trades guaranteed data freshness for the ability to scale read throughput and reduce load on the write path.&lt;/p&gt;
&lt;h2 id="comparison-diagram"&gt;Comparison Diagram&lt;/h2&gt;
&lt;div class="compare-diagram"&gt;
&lt;svg viewBox="0 0 640 360" xmlns="http://www.w3.org/2000/svg"&gt;&lt;rect x="260" y="20" width="120" height="48" rx="6" style="fill:none;stroke:var(--border)" stroke-width="1.5"/&gt;&lt;text x="320" y="49" text-anchor="middle" style="fill:var(--content)" font-size="14"&gt;Client&lt;/text&gt;&lt;rect x="90" y="160" width="160" height="64" rx="6" style="fill:var(--compare-a-soft);stroke:var(--compare-a)" stroke-width="1.5"/&gt;&lt;text x="170" y="186" text-anchor="middle" style="fill:var(--primary)" font-size="15" font-weight="bold"&gt;Primary&lt;/text&gt;&lt;text x="170" y="205" text-anchor="middle" style="fill:var(--secondary)" font-size="11"&gt;handles all writes&lt;/text&gt;&lt;rect x="390" y="160" width="160" height="64" rx="6" style="fill:var(--compare-b-soft);stroke:var(--compare-b)" stroke-width="1.5"/&gt;&lt;text x="470" y="186" text-anchor="middle" style="fill:var(--primary)" font-size="15" font-weight="bold"&gt;Replica&lt;/text&gt;&lt;text x="470" y="205" text-anchor="middle" style="fill:var(--secondary)" font-size="11"&gt;read-only copy&lt;/text&gt;&lt;line x1="250" y1="192" x2="390" y2="192" style="stroke:var(--border)" stroke-width="1.5" stroke-dasharray="5,4"/&gt;&lt;path d="M250,192 L390,192" style="stroke:var(--border)" stroke-width="1.5" stroke-dasharray="5,4" marker-end="url(#arrowRep)"/&gt;&lt;text x="320" y="180" text-anchor="middle" style="fill:var(--secondary)" font-size="10"&gt;async replication (lag)&lt;/text&gt;&lt;defs&gt;&lt;marker id="arrowRep" markerWidth="8" markerHeight="8" refX="6" refY="4" orient="auto"&gt;&lt;path d="M0,0 L8,4 L0,8 Z" style="fill:var(--border)"/&gt;&lt;/marker&gt;&lt;marker id="arrowA" markerWidth="8" markerHeight="8" refX="6" refY="4" orient="auto"&gt;&lt;path d="M0,0 L8,4 L0,8 Z" style="fill:var(--compare-a)"/&gt;&lt;/marker&gt;&lt;marker id="arrowB" markerWidth="8" markerHeight="8" refX="6" refY="4" orient="auto"&gt;&lt;path d="M0,0 L8,4 L0,8 Z" style="fill:var(--compare-b)"/&gt;&lt;/marker&gt;&lt;/defs&gt;&lt;path d="M300,68 L190,160" style="stroke:var(--compare-a)" stroke-width="1.5" fill="none" marker-end="url(#arrowA)"/&gt;&lt;text x="215" y="110" text-anchor="middle" style="fill:var(--compare-a)" font-size="11"&gt;write&lt;/text&gt;&lt;path d="M310,68 L235,160" style="stroke:var(--compare-a)" stroke-width="1.5" fill="none" stroke-dasharray="4,3" marker-end="url(#arrowA)"/&gt;&lt;text x="290" y="130" text-anchor="middle" style="fill:var(--compare-a)" font-size="11"&gt;read (fresh)&lt;/text&gt;&lt;path d="M340,68 L450,160" style="stroke:var(--compare-b)" stroke-width="1.5" fill="none" stroke-dasharray="4,3" marker-end="url(#arrowB)"/&gt;&lt;text x="400" y="130" text-anchor="middle" style="fill:var(--compare-b)" font-size="11"&gt;read (maybe stale)&lt;/text&gt;&lt;text x="170" y="260" text-anchor="middle" style="fill:var(--secondary)" font-size="12"&gt;single node, no lag&lt;/text&gt;&lt;text x="470" y="260" text-anchor="middle" style="fill:var(--secondary)" font-size="12"&gt;scales out horizontally&lt;/text&gt;&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id="comparison-table"&gt;Comparison Table&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Aspect&lt;/th&gt;
&lt;th&gt;Primary Reads&lt;/th&gt;
&lt;th&gt;Replica Reads&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Read target&lt;/td&gt;
&lt;td&gt;Always the single primary node&lt;/td&gt;
&lt;td&gt;Any of one or more read replicas&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Consistency guarantee&lt;/td&gt;
&lt;td&gt;Read-your-writes, strongly consistent&lt;/td&gt;
&lt;td&gt;Eventual consistency, may lag behind writes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Replication lag exposure&lt;/td&gt;
&lt;td&gt;None, reads the current write state directly&lt;/td&gt;
&lt;td&gt;Exposed to lag, from milliseconds to seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Contention with writes&lt;/td&gt;
&lt;td&gt;Reads compete with writes for CPU, locks, and I/O&lt;/td&gt;
&lt;td&gt;Writes on primary don&amp;rsquo;t directly compete with replica reads&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read throughput scaling&lt;/td&gt;
&lt;td&gt;Bounded by single node capacity&lt;/td&gt;
&lt;td&gt;Scales horizontally by adding more replicas&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Latency profile&lt;/td&gt;
&lt;td&gt;Consistent, no wait for replication to catch up&lt;/td&gt;
&lt;td&gt;Can be lower if replica is geographically closer, but variable under lag&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Failover behavior&lt;/td&gt;
&lt;td&gt;Node failure requires promotion and brief write/read outage&lt;/td&gt;
&lt;td&gt;Load balancer can reroute to another healthy replica&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Typical use case&lt;/td&gt;
&lt;td&gt;Financial transactions, read-after-write flows, admin views&lt;/td&gt;
&lt;td&gt;Analytics, reporting, public APIs, dashboards&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="key-differences"&gt;Key Differences&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong class="kw"&gt;Primary reads&lt;/strong&gt; guarantee read-your-writes consistency; &lt;strong class="kw"&gt;replica reads&lt;/strong&gt; may return stale data due to lag.&lt;/li&gt;
&lt;li&gt;Replica reads scale horizontally by adding &lt;strong class="kw"&gt;read replicas&lt;/strong&gt;; primary reads are bottlenecked by a &lt;strong class="kw"&gt;single node&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Primary reads compete with write traffic for resources; replica reads isolate read load via &lt;strong class="kw"&gt;replication&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong class="kw"&gt;Replication lag&lt;/strong&gt; on replicas ranges from milliseconds to seconds depending on network and write volume.&lt;/li&gt;
&lt;li&gt;Failover on the primary causes brief unavailability; replica failures are masked by &lt;strong class="kw"&gt;load balancing&lt;/strong&gt; across peers.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="when-to-use-each"&gt;When to Use Each&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Primary Reads&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>