{"id":26248,"date":"2026-09-03T14:06:10","date_gmt":"2026-09-03T21:06:10","guid":{"rendered":"https:\/\/www.pingcap.com\/?post_type=article&#038;p=26248"},"modified":"2026-09-03T14:06:12","modified_gmt":"2026-09-03T21:06:12","slug":"exploring-distributed-databases-tidbs-architecture-benefits","status":"publish","type":"article","link":"https:\/\/www.pingcap.com\/ko\/article\/exploring-distributed-databases-tidbs-architecture-benefits\/","title":{"rendered":"Exploring Distributed Databases: TiDB&#8217;s Architecture &#038; Benefits"},"content":{"rendered":"<p class=\"wp-block-paragraph\">People explain distributed database architecture at two levels. The first is the general one: replication, consensus, horizontal scale. The second is the level that decides whether a given system fits your workload, which is what its components actually are and what each one is responsible for. This page is about the second level for <a href=\"https:\/\/www.pingcap.com\/ko\/what-is-tidb\/\">\ud2f0DB<\/a>: the four components, how Raft keeps them consistent, and the one architectural choice that separates it from other distributed SQL databases.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_a_Distributed_Database_Has_to_Solve\"><\/span><strong>What a Distributed Database Has to Solve<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Every distributed database is answering the same three questions, and its architecture is the answer. How does data get spread across nodes without losing consistency? Why does the system keep serving when a node dies? How does it balance load as data grows unevenly?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The general trade-offs behind those questions, the benefits against a single node and the operational costs that come with distribution, are covered in our guide to <a href=\"https:\/\/www.pingcap.com\/ko\/article\/distributed-database-use-case\/\">distributed database use cases<\/a> and in the piece on <a href=\"https:\/\/www.pingcap.com\/ko\/article\/decentralized-cloud-computing-benefits-and-challenges\/\">decentralized cloud computing<\/a>. The rest of this page is specific: how TiDB answers all three.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"TiDBs_Architecture_Components_and_Communication\"><\/span><strong>TiDB\u2019s Architecture: Components and Communication<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">TiDB separates compute from storage across four components, each of which scales independently.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Component<\/strong><\/th><th><strong>Layer<\/strong><\/th><th><strong>What it does<\/strong><\/th><\/tr><\/thead><tbody><tr><td>TiDB server<\/td><td>Stateless SQL<\/td><td>Parses SQL, plans and optimizes queries, and coordinates reads and writes. Because it holds no data, instances can be added or removed without touching storage.<\/td><\/tr><tr><td>TiKV<\/td><td>Row storage<\/td><td>Stores data in ranges, each replicated across nodes as its own Raft group. Serves transactional reads and writes.<\/td><\/tr><tr><td>TiFlash<\/td><td>Columnar storage<\/td><td>Keeps a columnar replica of the same data as a Raft learner. Serves analytical queries.<\/td><\/tr><tr><td>PD (Placement Driver)<\/td><td>Cluster coordination<\/td><td>Tracks metadata and data distribution, schedules where replicas live, and transfers Raft leadership to balance load. It does not elect Raft leaders; each Raft group does that itself.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">That separation is what lets one cluster serve transactional and analytical workloads at once, which is the definition of a hybrid transactional\/analytical processing (HTAP) database. It is worth naming what it rules out. Distributed SQL databases built for OLTP alone still need a second, separately maintained system for analytics. Cockroach Labs positions <a href=\"https:\/\/www.pingcap.com\/ko\/compare\/\">CockroachDB<\/a>, the closest comparison on consensus design, for transactional workloads and expects analytics to land in a separate system through change data capture.TiKV and TiFlash stay in sync inside one cluster, so that second system, and the pipeline that feeds it, does not exist here.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Data_Consistency_and_Fault_Tolerance_in_TiDB\"><\/span><strong>Data Consistency and Fault Tolerance in TiDB<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">TiDB uses <a href=\"https:\/\/docs.pingcap.com\/tidb\/stable\/overview\/\">Raft consensus<\/a> for replication and two-phase commit for transactions, and the distinction matters. TiKV replicates each range of data across nodes as a Raft group, and a write to that range becomes durable once a majority of its replicas acknowledge it.. A transaction that touches multiple ranges commits through two-phase commit across those groups, so it is atomic even though no single node holds all of it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Fault tolerance falls out of the same design. Every range has multiple replicas, so when a node fails, only the Raft groups it belonged to elect new leaders, and every other range keeps serving uninterrupted. There is no cluster-wide failover event and no single primary to promote.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Scalability_and_Load_Balancing_in_TiDB\"><\/span><strong>Scalability and Load Balancing in TiDB<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">TiDB scales out by adding nodes, and the compute-storage separation is what makes that transparent to applications. Add TiDB servers for query capacity, add TiKV nodes for storage and write throughput, and add TiFlash nodes for analytical capacity. No resharding, and no application changes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Load balancing is PD\u2019s job. PD watches where data and traffic land across the cluster and moves replicas and Raft leadership as workloads shift, so a range that suddenly gets hot doesn&#8217;t pin one node while others sit idle.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"TiDB_in_Production_MNC_Bank_Flipkart_and_Tripcom\"><\/span><strong>TiDB in Production: MNC Bank, Flipkart, and Trip.com<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Three deployments show what the architecture buys across different pressures.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pingcap.com\/ko\/case-study\/mnc-bank-supercharges-performance-with-tidb\/\"><strong>MNC Bank<\/strong><\/a> runs critical finance operations with strict consistency requirements, and reported 10x higher throughput, 50% lower latency, and 85% faster backups after adopting TiDB.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pingcap.com\/ko\/case-study\/flipkart-transforming-database-management-and-reducing-complexity-with-tidb\/\"><strong>Flipkart<\/strong><\/a> relies on horizontal scaling and replica availability to hold up through e-commerce peak load without manual resharding.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pingcap.com\/ko\/case-study\/trip-com-boosts-real-time-data-processing-and-financial-settlement-with-tidb\/\"><strong>Trip.com<\/strong><\/a> uses TiDB for real-time data processing and financial settlement, where booking and payment records have to stay consistent across regions rather than get reconciled afterward.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The common thread is workloads that need transactional correctness and current analytics on the same data. This is the case the two-engine design is built for.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"TiDB_in_Cloud-Native_Environments\"><\/span><strong>TiDB in Cloud-Native Environments<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">TiDB runs on Kubernetes through <a href=\"https:\/\/docs.pingcap.com\/tidb-in-kubernetes\/stable\/\">TiDB Operator<\/a>, which handles deployment, scaling, upgrades, and failover as cluster operations rather than manual runbooks. Because each component scales independently, capacity changes are a matter of changing a replica count.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The same properties support multi-region disaster recovery: replicas distribute across geographic regions or cloud availability zones, so losing a zone costs capacity rather than availability. <a href=\"https:\/\/www.pingcap.com\/ko\/tidb\/cloud\/\">TiDB Cloud<\/a> offers the same architecture as a managed service for teams that would rather not operate it themselves.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"The_Takeaway\"><\/span><strong>The Takeaway<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">TiDB\u2019s architecture comes down to four components and one choice: separate compute from storage, replicate per range with Raft, let PD balance the result, and keep a columnar replica in the same cluster so analytics never needs a second system. That last part is what distinguishes it from distributed SQL databases built for OLTP alone.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want implementation-level detail on how the components fit together, the <a href=\"https:\/\/docs.pingcap.com\/tidb\/stable\/overview\/\">TiDB architecture documentation<\/a> covers each one in depth.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"FAQs\"><\/span><strong>\uc790\uc8fc \ubb3b\ub294 \uc9c8\ubb38<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What makes TiDB\u2019s architecture different from other distributed SQL databases?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The columnar engine. Most distributed SQL databases, CockroachDB among them, are built for transactional workloads only. This means analytics needs a separate warehouse and a pipeline to feed it. TiDB pairs the TiKV row store with the TiFlash columnar store inside the same cluster, so both workload types read the same data without a second system to maintain.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How does TiDB achieve both strong consistency and high availability?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Through Raft. A write commits once a majority of its range\u2019s replicas acknowledge it, which guarantees consistency, and if a node fails the remaining replicas of each affected range elect a new leader and keep serving, which preserves availability. Because replication happens per range rather than per cluster, a node failure degrades capacity instead of interrupting service.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Can TiDB run analytical queries without a separate data warehouse?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. TiFlash maintains a columnar replica of the data as a Raft learner, and validates its log index against TiKV before serving a query, so analytical queries read data consistent with committed transactions. There is no export job and no second database to operate.<\/p>","protected":false},"excerpt":{"rendered":"<p>Discover the advantages of distributed databases with TiDB, focusing on scalability, consistency, and fault tolerance in cloud-native environments.<\/p>","protected":false},"author":218,"featured_media":0,"template":"","class_list":["post-26248","article","type-article","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>TiDB: Distributed Database Architecture &amp; Benefits<\/title>\n<meta name=\"description\" content=\"How TiDB implements distributed database architecture: benefits, challenges, and how it differs from other distributed SQL databases.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pingcap.com\/ko\/article\/exploring-distributed-databases-tidbs-architecture-benefits\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"TiDB: Distributed Database Architecture &amp; Benefits\" \/>\n<meta property=\"og:description\" content=\"How TiDB implements distributed database architecture: benefits, challenges, and how it differs from other distributed SQL databases.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pingcap.com\/ko\/article\/exploring-distributed-databases-tidbs-architecture-benefits\/\" \/>\n<meta property=\"og:site_name\" content=\"TiDB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/pingcap2015\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-03T21:06:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/static.pingcap.com\/files\/2024\/09\/11005522\/Homepage-Ad.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1440\" \/>\n\t<meta property=\"og:image:height\" content=\"714\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@PingCAP\" \/>\n<meta name=\"twitter:label1\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data1\" content=\"5\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/article\\\/exploring-distributed-databases-tidbs-architecture-benefits\\\/\",\"url\":\"https:\\\/\\\/www.pingcap.com\\\/article\\\/exploring-distributed-databases-tidbs-architecture-benefits\\\/\",\"name\":\"TiDB: Distributed Database Architecture & Benefits\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/#website\"},\"datePublished\":\"2026-09-03T21:06:10+00:00\",\"dateModified\":\"2026-09-03T21:06:12+00:00\",\"description\":\"How TiDB implements distributed database architecture: benefits, challenges, and how it differs from other distributed SQL databases.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/article\\\/exploring-distributed-databases-tidbs-architecture-benefits\\\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pingcap.com\\\/article\\\/exploring-distributed-databases-tidbs-architecture-benefits\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/article\\\/exploring-distributed-databases-tidbs-architecture-benefits\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pingcap.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\\\/\\\/www.pingcap.com\\\/article\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Exploring Distributed Databases: TiDB&#8217;s Architecture &#038; Benefits\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/#website\",\"url\":\"https:\\\/\\\/www.pingcap.com\\\/\",\"name\":\"TiDB\",\"description\":\"TiDB | SQL at Scale\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pingcap.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/#organization\",\"name\":\"PingCAP\",\"url\":\"https:\\\/\\\/www.pingcap.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/static.pingcap.com\\\/files\\\/2021\\\/11\\\/pingcap-logo.png\",\"contentUrl\":\"https:\\\/\\\/static.pingcap.com\\\/files\\\/2021\\\/11\\\/pingcap-logo.png\",\"width\":811,\"height\":232,\"caption\":\"PingCAP\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/pingcap2015\",\"https:\\\/\\\/x.com\\\/PingCAP\",\"https:\\\/\\\/linkedin.com\\\/company\\\/pingcap\",\"https:\\\/\\\/youtube.com\\\/channel\\\/UCuq4puT32DzHKT5rU1IZpIA\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"TiDB: Distributed Database Architecture & Benefits","description":"How TiDB implements distributed database architecture: benefits, challenges, and how it differs from other distributed SQL databases.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pingcap.com\/ko\/article\/exploring-distributed-databases-tidbs-architecture-benefits\/","og_locale":"ko_KR","og_type":"article","og_title":"TiDB: Distributed Database Architecture & Benefits","og_description":"How TiDB implements distributed database architecture: benefits, challenges, and how it differs from other distributed SQL databases.","og_url":"https:\/\/www.pingcap.com\/ko\/article\/exploring-distributed-databases-tidbs-architecture-benefits\/","og_site_name":"TiDB","article_publisher":"https:\/\/facebook.com\/pingcap2015","article_modified_time":"2026-09-03T21:06:12+00:00","og_image":[{"width":1440,"height":714,"url":"https:\/\/static.pingcap.com\/files\/2024\/09\/11005522\/Homepage-Ad.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@PingCAP","twitter_misc":{"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"5\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pingcap.com\/article\/exploring-distributed-databases-tidbs-architecture-benefits\/","url":"https:\/\/www.pingcap.com\/article\/exploring-distributed-databases-tidbs-architecture-benefits\/","name":"TiDB: Distributed Database Architecture & Benefits","isPartOf":{"@id":"https:\/\/www.pingcap.com\/#website"},"datePublished":"2026-09-03T21:06:10+00:00","dateModified":"2026-09-03T21:06:12+00:00","description":"How TiDB implements distributed database architecture: benefits, challenges, and how it differs from other distributed SQL databases.","breadcrumb":{"@id":"https:\/\/www.pingcap.com\/article\/exploring-distributed-databases-tidbs-architecture-benefits\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pingcap.com\/article\/exploring-distributed-databases-tidbs-architecture-benefits\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pingcap.com\/article\/exploring-distributed-databases-tidbs-architecture-benefits\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pingcap.com\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/www.pingcap.com\/article\/"},{"@type":"ListItem","position":3,"name":"Exploring Distributed Databases: TiDB&#8217;s Architecture &#038; Benefits"}]},{"@type":"WebSite","@id":"https:\/\/www.pingcap.com\/#website","url":"https:\/\/www.pingcap.com\/","name":"\ud2f0DB","description":"TiDB | SQL at Scale","publisher":{"@id":"https:\/\/www.pingcap.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pingcap.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/www.pingcap.com\/#organization","name":"PingCAP","url":"https:\/\/www.pingcap.com\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/","url":"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png","contentUrl":"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png","width":811,"height":232,"caption":"PingCAP"},"image":{"@id":"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/pingcap2015","https:\/\/x.com\/PingCAP","https:\/\/linkedin.com\/company\/pingcap","https:\/\/youtube.com\/channel\/UCuq4puT32DzHKT5rU1IZpIA"]}]}},"card_markup":"        <a class=\"card-article\" href=\"https:\/\/www.pingcap.com\/ko\/article\/exploring-distributed-databases-tidbs-architecture-benefits\/\">            <h3>Exploring Distributed Databases: TiDB&#8217;s Architecture &#038; Benefits<\/h3>            <p>Discover the advantages of distributed databases with TiDB, focusing on scalability, consistency, and fault tolerance in cloud-native environments.<\/p>        <\/a>","_links":{"self":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/article\/26248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/users\/218"}],"wp:attachment":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/media?parent=26248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}