{"id":21016,"date":"2024-09-26T14:03:55","date_gmt":"2024-09-26T21:03:55","guid":{"rendered":"https:\/\/www.pingcap.com\/article\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/"},"modified":"2024-12-11T20:20:14","modified_gmt":"2024-12-12T04:20:14","slug":"redis-vs-tidb-key-differences-use-cases-and-migration-guide","status":"publish","type":"article","link":"https:\/\/www.pingcap.com\/ko\/article\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/","title":{"rendered":"Redis vs TiDB: Key Differences, Use Cases, and Migration Guide"},"content":{"rendered":"<h2><span class=\"ez-toc-section\" id=\"Introduction_to_Redis_and_TiDB\"><\/span>Introduction to Redis and TiDB<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>Overview of Redis: Use Cases and Limitations<\/h3>\n<p>Redis, an acronym for Remote Dictionary Server, is an open-source, in-memory data structure store primarily used as a database, cache, and message broker. Its high speed, due to in-memory storage, makes it a popular choice for applications requiring low-latency data access. Common use cases include session stores, caching layers, real-time analytics, and leaderboards in gaming applications.<\/p>\n<p>However, Redis has limitations that can be challenging to work around. Firstly, its in-memory nature implies that the data stored in Redis must fit within the available RAM, which can become costly as the data volume grows. Secondly, Redis has limited support for complex queries compared to SQL-based databases. Operations involving extensive scans or joins are not Redis\u2019s forte. Additionally, while Redis provides mechanisms for data persistence, its primary strength is not in long-term reliable storage. Lastly, despite recent advances, Redis struggles with horizontal scalability when compared to more specialized distributed databases.<\/p>\n<h3>Introduction to TiDB: Features and Advantages<\/h3>\n<p><a href=\"https:\/\/docs.pingcap.com\/tidb\/stable\/tidb-faq\">TiDB<\/a> is an open-source distributed SQL database developed by PingCAP. It supports Hybrid Transactional and Analytical Processing (HTAP) workloads, offering a blend of OLTP (Online Transactional Processing) and OLAP (Online Analytical Processing) capabilities. TiDB aims to be a one-stop solution for various data service needs, such as real-time analytics and multi-site high availability, all while maintaining MySQL compatibility.<\/p>\n<p>Key features of TiDB include:<\/p>\n<ul>\n<li><strong>Horizontal Scalability:<\/strong> TiDB&#8217;s architecture allows dynamic scaling of both compute and storage layers, making it adept at handling growing data loads without downtime.<\/li>\n<li><strong>Strong Consistency and High Availability:<\/strong> Utilizing the Raft consensus algorithm, TiDB ensures that data remains consistent and available even in the event of node failures.<\/li>\n<li><strong>Real-time HTAP:<\/strong> With TiKV for row storage and TiFlash for columnar storage, TiDB can handle both transactional and analytical workloads efficiently.<\/li>\n<li><strong>SQL Compatibility:<\/strong> TiDB supports a broad range of MySQL syntax, easing the transition for applications currently using MySQL.<\/li>\n<\/ul>\n<p>For more details, refer to the <a href=\"https:\/\/docs.pingcap.com\/tidb\/v7.1\/overview\">TiDB Introduction<\/a>.<\/p>\n<h3>Key Differences Between Redis and TiDB<\/h3>\n<p>While both Redis and TiDB serve as databases, they cater to different needs and architectural philosophies. Redis excels as an in-memory store with simple data structures and rapid access times, designed primarily for scenarios where speed is paramount and data volume is manageable within memory constraints.<\/p>\n<p>Conversely, TiDB is engineered for large-scale, distributed environments where robust data consistency, SQL capabilities, and horizontal scalability are critical. It offers more sophisticated query capabilities, better persistence, and higher resiliency compared to Redis. Whereas Redis is typically more cost-effective for high-speed caching, TiDB shines in multi-purpose database environments requiring complex queries and broad scalability.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Driving_Factors_for_Transition\"><\/span>Driving Factors for Transition<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>Performance Bottlenecks with Redis<\/h3>\n<p>Despite its speed, Redis can encounter performance bottlenecks as the dataset grows. Since Redis operates in memory, a large dataset inevitably leads to higher hardware costs to accommodate the needed RAM. Additionally, operations that require complex query logic or dataset-wide scans become inefficient and slow, as Redis lacks robust support for such queries. When these bottlenecks impact application performance, it might be time to consider transitioning to a database like TiDB.<\/p>\n<h3>Scalability Challenges with Redis<\/h3>\n<p>Redis\u2019s scalability is inherently limited due to its design. While clustering helps to some extent, the approach requires careful data partitioning and often involves significant overhead in management and tuning. Horizontal scaling in Redis is not as seamless compared to distributed databases, leading to potential downtime and complexity as the number of nodes increases. This can be especially problematic in environments with rapidly growing data needs or variable workloads.<\/p>\n<h3>Data Consistency and Reliability Requirements<\/h3>\n<p>In scenarios requiring high data consistency and reliability, Redis presents further challenges. Although Redis has mechanisms like AOF (Append-Only File) and RDB (Redis Database Backup) for data persistence, these mechanisms may not always ensure maximum reliability and can result in data loss under extreme conditions. TiDB, built with strong consistency and high availability using the Raft protocol, provides more robust guarantees. For applications where data integrity and consistency are critical, TiDB offers significant advantages over Redis.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Transitioning_from_Redis_to_TiDB\"><\/span>Transitioning from Redis to TiDB<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>Planning the Migration: Key Considerations<\/h3>\n<p>Migrating from Redis to TiDB involves several key considerations:<\/p>\n<ol>\n<li><strong>Data Volume and Nature:<\/strong> Assess the volume of data and its characteristics (read-heavy, write-heavy, transactional, analytical) to understand how best to structure it in TiDB.<\/li>\n<li><strong>Downtime Tolerance:<\/strong> Plan for migration phases and ensure a rollback strategy is in place in case of issues.<\/li>\n<li><strong>Resource Allocation:<\/strong> Ensure you have the necessary computational and storage resources to support TiDB\u2019s distributed architecture.<\/li>\n<\/ol>\n<h3>Data Modeling and Schema Conversion<\/h3>\n<p>Data modeling in TiDB involves creating schemas that can efficiently handle your workload. Since TiDB is SQL-based, it supports more complex and structured data types compared to Redis&#8217;s simple string, list, set, sorted set, hash, bitmap, and geospatial structures.<\/p>\n<p><strong>Step-by-Step Conversion Example:<\/strong><\/p>\n<ol>\n<li><strong>Identify Redis Data Structures:<\/strong> Note down all data types being used in Redis.<\/li>\n<li><strong>Create Equivalent SQL Schemas in TiDB:<\/strong> Use SQL DDL commands to create tables and define their relationships.<\/li>\n<\/ol>\n<p>For instance, if you have a Redis list that stores user IDs representing user sessions, you might translate this into a TiDB table:<\/p>\n<div class=\"codehilite\">\n<pre><code><span class=\"k\">CREATE<\/span> <span class=\"k\">TABLE<\/span> <span class=\"n\">user_sessions<\/span> <span class=\"p\">(<\/span>\n    <span class=\"n\">session_id<\/span> <span class=\"nb\">BIGINT<\/span> <span class=\"k\">PRIMARY<\/span> <span class=\"k\">KEY<\/span><span class=\"p\">,<\/span>\n    <span class=\"n\">user_id<\/span> <span class=\"nb\">BIGINT<\/span><span class=\"p\">,<\/span>\n    <span class=\"n\">created_at<\/span> <span class=\"k\">TIMESTAMP<\/span> <span class=\"k\">DEFAULT<\/span> <span class=\"k\">CURRENT_TIMESTAMP<\/span>\n<span class=\"p\">);<\/span>\n<\/code><\/pre>\n<\/div>\n<ol start=\"3\">\n<li><strong>Data Mapping:<\/strong> Write scripts to traverse Redis data structures and convert them to SQL insert statements for TiDB.<\/li>\n<\/ol>\n<h3>Tools and Techniques for Data Migration<\/h3>\n<p>Several tools can facilitate the migration process:<\/p>\n<ul>\n<li><strong>Dumpling:<\/strong> To export data from MySQL or MariaDB into TiDB-compatible formats.<\/li>\n<li><strong>TiDB Lightning:<\/strong> For rapid data import into TiDB.<\/li>\n<li><strong>DM (Data Migration):<\/strong> For incremental data replication from MySQL to TiDB.<\/li>\n<\/ul>\n<p>Here\u2019s a simplified flow of using Dumpling and TiDB Lightning:<\/p>\n<ol>\n<li><strong>Dumpling Export:<\/strong>\n<div class=\"codehilite\">\n<pre><code>dumpling -u root -p &lt;password&gt; -H &lt;redis_host&gt; -P &lt;redis_port&gt; -B &lt;redis_db&gt; -o \/path\/to\/export\n<\/code><\/pre>\n<\/div>\n<\/li>\n<li><strong>TiDB Lightning Import:<\/strong>\n<p>Configure <code>tidb-lightning.toml<\/code>:<\/p>\n<div class=\"codehilite\">\n<pre><code><span class=\"k\">[lightning]<\/span>\n<span class=\"c1\"># Log level<\/span>\n<span class=\"n\">level<\/span> <span class=\"o\">=<\/span> <span class=\"s2\">\"info\"<\/span>\n<span class=\"c1\"># File storage directory<\/span>\n<span class=\"n\">file<\/span> <span class=\"o\">=<\/span> <span class=\"s2\">\"\/path\/to\/tidb-lightning.log\"<\/span>\n\n<span class=\"k\">[tikv-importer]<\/span>\n<span class=\"n\">backend<\/span> <span class=\"o\">=<\/span> <span class=\"s2\">\"local\"<\/span>\n\n<span class=\"k\">[mydumper]<\/span>\n<span class=\"n\">data-source-dir<\/span> <span class=\"o\">=<\/span> <span class=\"s2\">\"\/path\/to\/export\"<\/span>\n\n<span class=\"k\">[tidb]<\/span>\n<span class=\"n\">host<\/span> <span class=\"o\">=<\/span> <span class=\"s2\">\"localhost\"<\/span>\n<span class=\"n\">port<\/span> <span class=\"o\">=<\/span> <span class=\"mi\">4000<\/span>\n<span class=\"n\">user<\/span> <span class=\"o\">=<\/span> <span class=\"s2\">\"root\"<\/span>\n<span class=\"n\">password<\/span> <span class=\"o\">=<\/span> <span class=\"s2\">\"\"<\/span>\n<\/code><\/pre>\n<\/div>\n<p>Run TiDB Lightning:<\/p>\n<div class=\"codehilite\">\n<pre><code>tidb-lightning -config \/path\/to\/tidb-lightning.toml\n<\/code><\/pre>\n<\/div>\n<\/li>\n<\/ol>\n<p>For detailed migration examples, see the <a href=\"https:\/\/docs.pingcap.com\/tidb\/stable\/migration-overview\">Migration Guide<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Enhancing_Performance_with_TiDB\"><\/span>Enhancing Performance with TiDB<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>Distributed SQL Engines: How TiDB Handles Queries<\/h3>\n<p>TiDB\u2019s distributed SQL engine separates the storage (TiKV and TiFlash) and the compute layer (TiDB server). This design allows TiDB to handle queries more efficiently than Redis by distributing the load across multiple nodes and leveraging parallel processing.<\/p>\n<p>Example of a distributed query in TiDB:<\/p>\n<div class=\"codehilite\">\n<pre><code><span class=\"k\">SELECT<\/span> <span class=\"n\">user_id<\/span><span class=\"p\">,<\/span> <span class=\"k\">COUNT<\/span><span class=\"p\">(<\/span><span class=\"o\">*<\/span><span class=\"p\">)<\/span> <span class=\"k\">AS<\/span> <span class=\"n\">session_count<\/span>\n<span class=\"k\">FROM<\/span> <span class=\"n\">user_sessions<\/span>\n<span class=\"k\">GROUP<\/span> <span class=\"k\">BY<\/span> <span class=\"n\">user_id<\/span>\n<span class=\"k\">ORDER<\/span> <span class=\"k\">BY<\/span> <span class=\"n\">session_count<\/span> <span class=\"k\">DESC<\/span><span class=\"p\">;<\/span>\n<\/code><\/pre>\n<\/div>\n<p>This query leverages TiDB\u2019s distributed compute architecture to process large datasets rapidly, something Redis would struggle with due to its in-memory constraints and limited support for such operations.<\/p>\n<h3>Performance Benchmarks: TiDB vs Redis<\/h3>\n<p>When comparing performance benchmarks between TiDB and Redis, it&#8217;s essential to consider the differing use cases and architectural designs:<\/p>\n<table>\n<thead>\n<tr>\n<th>Metric<\/th>\n<th>Redis<\/th>\n<th>TiDB<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Read Latency<\/td>\n<td>Milliseconds to Microseconds<\/td>\n<td>Milliseconds to Microseconds<\/td>\n<\/tr>\n<tr>\n<td>Write Latency<\/td>\n<td>Milliseconds to Microseconds<\/td>\n<td>Milliseconds<\/td>\n<\/tr>\n<tr>\n<td>Complex Query Support<\/td>\n<td>Limited<\/td>\n<td>Advanced (SQL-based)<\/td>\n<\/tr>\n<tr>\n<td>Scalability<\/td>\n<td>Moderate (clustering, manual sharding)<\/td>\n<td>High (automatic sharding, dynamic scaling)<\/td>\n<\/tr>\n<tr>\n<td>High Availability<\/td>\n<td>Basic (replication, Sentinel)<\/td>\n<td>Advanced (Raft protocol, multi-region)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Real-world Case Studies of Performance Improvements<\/h3>\n<p>One notable case study involves a financial services company that transitioned from Redis to TiDB to address the scaling issues and data inconsistencies they encountered with Redis. By migrating to TiDB, they achieved:<\/p>\n<ul>\n<li><strong>Enhanced Scalability:<\/strong> Increased capacity to handle growing transaction volumes without downtime.<\/li>\n<li><strong>Improved Consistency:<\/strong> With TiDB\u2019s strong consistency model, data integrity was ensured across all transactions.<\/li>\n<li><strong>Reduced Costs:<\/strong> By leveraging TiDB\u2019s efficient storage mechanisms, they reduced the infrastructure costs significantly compared to running multiple Redis instances on high-memory servers.<\/li>\n<\/ul>\n<p>Another example involves an e-commerce platform that required complex real-time analytics which were beyond Redis\u2019s capabilities. By adopting TiDB, the company was able to:<\/p>\n<ul>\n<li><strong>Execute Complex Queries:<\/strong> Utilized advanced SQL queries for real-time analytics which was infeasible with Redis.<\/li>\n<li><strong>Achieve Near Real-time Insights:<\/strong> Leveraged TiFlash\u2019s columnar storage for faster analytical processing.<\/li>\n<li><strong>Seamless Integration:<\/strong> Migrated with minimal changes to their application code due to TiDB\u2019s MySQL compatibility.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Migrating from Redis to TiDB can offer substantial benefits depending on the specific needs and growth trajectory of your application. While Redis excels in scenarios requiring ultra-fast in-memory operations, TiDB proves invaluable for applications demanding robust data consistency, horizontal scalability, and complex querying capabilities.<\/p>\n<p>Planning a transition entails careful consideration of data modeling, schema conversion, and consistent data replication. Tools like Dumpling, TiDB Lightning, and DM make the process smoother, allowing organizations to leverage TiDB\u2019s advanced features effectively.<\/p>\n<p>In an era where data drives decision-making, having a robust managed database that scales with your needs can make a significant difference. TiDB offers an exciting prospect for innovators looking to blend the best of OLTP and OLAP, providing a resilient and scalable platform suited for modern applications. Explore more at the <a href=\"https:\/\/docs.pingcap.com\/tidb\/stable\/tidb-faq\">PingCAP TiDB documentation<\/a> and start harnessing the full power of TiDB today.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Compare Redis and TiDB, explore their use cases, and learn how to migrate for better performance and scalability.<\/p>","protected":false},"author":8,"featured_media":0,"template":"","class_list":["post-21016","article","type-article","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Redis vs TiDB: Key Differences, Use Cases, and Migration Guide | TiDB<\/title>\n<meta name=\"description\" content=\"Compare Redis and TiDB, explore their use cases, and learn how to migrate for better performance and scalability.\" \/>\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\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Redis vs TiDB: Key Differences, Use Cases, and Migration Guide | TiDB\" \/>\n<meta property=\"og:description\" content=\"Compare Redis and TiDB, explore their use cases, and learn how to migrate for better performance and scalability.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pingcap.com\/ko\/article\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/\" \/>\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=\"2024-12-12T04:20:14+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=\"7\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pingcap.com\/article\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/\",\"url\":\"https:\/\/www.pingcap.com\/article\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/\",\"name\":\"Redis vs TiDB: Key Differences, Use Cases, and Migration Guide | TiDB\",\"isPartOf\":{\"@id\":\"https:\/\/www.pingcap.com\/#website\"},\"datePublished\":\"2024-09-26T21:03:55+00:00\",\"dateModified\":\"2024-12-12T04:20:14+00:00\",\"description\":\"Compare Redis and TiDB, explore their use cases, and learn how to migrate for better performance and scalability.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pingcap.com\/article\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pingcap.com\/article\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pingcap.com\/article\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/#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\":\"Redis vs TiDB: Key Differences, Use Cases, and Migration Guide\"}]},{\"@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":"Redis vs TiDB: Key Differences, Use Cases, and Migration Guide | TiDB","description":"Compare Redis and TiDB, explore their use cases, and learn how to migrate for better performance and scalability.","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\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/","og_locale":"ko_KR","og_type":"article","og_title":"Redis vs TiDB: Key Differences, Use Cases, and Migration Guide | TiDB","og_description":"Compare Redis and TiDB, explore their use cases, and learn how to migrate for better performance and scalability.","og_url":"https:\/\/www.pingcap.com\/ko\/article\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/","og_site_name":"TiDB","article_publisher":"https:\/\/facebook.com\/pingcap2015","article_modified_time":"2024-12-12T04:20:14+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":"7\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pingcap.com\/article\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/","url":"https:\/\/www.pingcap.com\/article\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/","name":"Redis vs TiDB: Key Differences, Use Cases, and Migration Guide | TiDB","isPartOf":{"@id":"https:\/\/www.pingcap.com\/#website"},"datePublished":"2024-09-26T21:03:55+00:00","dateModified":"2024-12-12T04:20:14+00:00","description":"Compare Redis and TiDB, explore their use cases, and learn how to migrate for better performance and scalability.","breadcrumb":{"@id":"https:\/\/www.pingcap.com\/article\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pingcap.com\/article\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pingcap.com\/article\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/#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":"Redis vs TiDB: Key Differences, Use Cases, and Migration Guide"}]},{"@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\/redis-vs-tidb-key-differences-use-cases-and-migration-guide\/\">            <h3>Redis vs TiDB: Key Differences, Use Cases, and Migration Guide<\/h3>            <p>Compare Redis and TiDB, explore their use cases, and learn how to migrate for better performance and scalability.<\/p>        <\/a>","_links":{"self":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/article\/21016","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\/8"}],"wp:attachment":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/media?parent=21016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}