<?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>Databases on Explain It</title><link>https://explainit.metacog.co.kr/tags/databases/</link><description>Recent content in Databases on Explain It</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 29 Aug 2026 00:14:56 +0900</lastBuildDate><atom:link href="https://explainit.metacog.co.kr/tags/databases/index.xml" rel="self" type="application/rss+xml"/><item><title>Why apps split 'changing data' and 'reading data' into two completely separate lanes</title><link>https://explainit.metacog.co.kr/posts/2026-08-29-why-apps-split-changing-data-and-reading-data-into-two-compl/</link><pubDate>Sat, 29 Aug 2026 00:14:56 +0900</pubDate><guid>https://explainit.metacog.co.kr/posts/2026-08-29-why-apps-split-changing-data-and-reading-data-into-two-compl/</guid><description>&lt;h2 id="-what-is-it"&gt;🤔 What Is It?&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;CQRS(Command Query Responsibility Segregation)&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;CQRS is a rule for building apps that says: the part of the app that &lt;em&gt;changes&lt;/em&gt; data (like posting a comment) must be completely separate from the part that &lt;em&gt;reads&lt;/em&gt; data (like scrolling through comments). Keeping them apart means each side can be made super-fast at its one job.&lt;/p&gt;
&lt;h2 id="-like-a-school-library-with-two-separate-desks"&gt;🧩 Like a school library with two separate desks&lt;/h2&gt;
&lt;p&gt;Imagine your school library has two completely different desks on opposite sides of the room. At the REQUEST DESK you hand the librarian a slip saying &amp;lsquo;I&amp;rsquo;d like to borrow Harry Potter&amp;rsquo; — the librarian fetches the book, stamps it, and updates the big official record book. That desk&amp;rsquo;s only job is to &lt;em&gt;change&lt;/em&gt; things. On the other side is the SEARCH COMPUTER — you type in any title and it instantly shows you what&amp;rsquo;s available, who wrote it, how many pages it has. The search computer never stamps anything or moves a single book; its only job is to &lt;em&gt;read&lt;/em&gt; and display. The search computer even has its own simplified copy of the information it needs, so it never has to wait around while the librarian is busy stamping books. These two desks are completely independent — and that&amp;rsquo;s exactly what CQRS does inside an app.&lt;/p&gt;</description></item><item><title>How Patroni Keeps Your Database Running Even When Servers Crash</title><link>https://explainit.metacog.co.kr/posts/2026-07-22-how-patroni-keeps-your-database-running-even-when-servers-cr/</link><pubDate>Wed, 22 Jul 2026 07:22:28 +0900</pubDate><guid>https://explainit.metacog.co.kr/posts/2026-07-22-how-patroni-keeps-your-database-running-even-when-servers-cr/</guid><description>&lt;h2 id="-what-is-it"&gt;🤔 What Is It?&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Patroni 기반 분산 PostgreSQL, Patroni HA&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Patroni is smart coach software that watches over a team of database servers — if the main server breaks, it instantly picks a backup to take over so your app never goes offline.&lt;/p&gt;
&lt;h2 id="-like-a-soccer-team-with-an-automatic-coach"&gt;🧩 Like a soccer team with an automatic coach&lt;/h2&gt;
&lt;p&gt;Imagine a soccer team where one player is chosen as the captain — they call all the plays and everyone follows them. Three other players are backup captains who watch every single move the main captain makes and copy every strategy note into their own notebooks, second by second. A super-smart coach named Patroni watches everyone from the sideline, and the whole team shares one giant whiteboard called etcd that always shows exactly who the current captain is. If the main captain suddenly twists their ankle and can&amp;rsquo;t play, Patroni instantly checks the backups, picks the one whose notebook is most up-to-date, writes the new name on the whiteboard, and the game keeps going — all in a few seconds. Nobody in the stands even notices the switch happened.&lt;/p&gt;</description></item></channel></rss>