|
1 | 1 | <div align="center">
|
2 |
| - |
3 | 2 | <a href='https://www.pingcap.com/?utm_source=github&utm_medium=tidb'>
|
4 |
| -<img src="docs/tidb-logo-with-text.png" alt="TiDB, a distributed SQL database" height=100></img> |
| 3 | +<img src="docs/tidb-logo.png" alt="TiDB, a distributed SQL database" height=100></img> |
5 | 4 | </a>
|
6 |
| -<br></br> |
7 | 5 |
|
8 |
| -[](https://github.com/pingcap/tidb/blob/master/LICENSE) |
| 6 | +--- |
| 7 | + |
| 8 | +[](https://github.com/pingcap/tidb/blob/master/LICENSE) |
9 | 9 | [](https://golang.org/)
|
10 | 10 | [](https://prow.tidb.net/?repo=pingcap%2Ftidb&type=postsubmit&job=pingcap%2Ftidb%2Fmerged_build)
|
11 | 11 | [](https://goreportcard.com/report/github.com/pingcap/tidb)
|
12 | 12 | [](https://github.com/pingcap/tidb/releases)
|
13 |
| -[](https://github.com/pingcap/tidb/releases) |
14 |
| -[](https://codecov.io/gh/pingcap/tidb) |
15 |
| -[](https://godoc.org/github.com/pingcap/tidb) |
| 13 | +</div> |
16 | 14 |
|
17 |
| -<div> |
| 15 | +# TiDB |
18 | 16 |
|
19 |
| -[?style=for-the-badge>)](https://www.pingcap.com/?utm_source=github&utm_medium=tidb_readme) |
20 |
| -[?style=for-the-badge>)](https://play.tidbcloud.com/?utm_source=github&utm_medium=tidb_readme) |
| 17 | +TiDB (/’taɪdiːbi:/, "Ti" stands for Titanium) is an open-source, cloud-native, distributed SQL database designed for high availability, horizontal and vertical scalability, strong consistency, and high performance. |
21 | 18 |
|
22 |
| -</div> |
| 19 | +- [Key Features](#key-features) |
| 20 | +- [Quick Start](#quick-start) |
| 21 | +- [Need Help?](#need-help) |
| 22 | +- [Architecture](#architecture) |
| 23 | +- [Contributing](#contributing) |
| 24 | +- [License](#license) |
| 25 | +- [See Also](#see-also) |
| 26 | +- [Acknowledgments](#acknowledgments) |
23 | 27 |
|
24 |
| ---- |
| 28 | +## Key Features |
25 | 29 |
|
26 |
| -<div> |
27 |
| - <a href="https://x.com/tidb_developer"><img src="https://img.shields.io/badge/- @TiDB__Developer -424549?style=social&logo=x" height=25></a> |
28 |
| - |
29 |
| - <a href="https://ask.pingcap.com/"><img src="https://img.shields.io/badge/- Forum -red?style=social&logo=discourse" height=25></a> |
30 |
| - |
31 |
| - <a href="https://discord.gg/KVRZBR2DrG?utm_source=github"><img src="https://img.shields.io/badge/- Discord -red?style=social&logo=discord" height=25></a> |
32 |
| - |
33 |
| - <a href="https://slack.tidb.io/invite?team=tidb-community&channel=everyone&ref=pingcap-tidb"><img src="https://img.shields.io/badge/-Slack-red?style=social&logo=slack" height=25></a> |
34 |
| - |
35 |
| - <a href="https://stackoverflow.com/questions/tagged/tidb"><img src="https://img.shields.io/badge/-Stack Overflow-red?style=social&logo=stackoverflow" height=25></a> |
36 |
| -</div> |
| 30 | +- **[Distributed Transactions](https://www.pingcap.com/blog/distributed-transactions-tidb?utm_source=github&utm_medium=tidb)**: TiDB uses a two-phase commit protocol to ensure ACID compliance, providing strong consistency. Transactions span multiple nodes, and TiDB's distributed nature ensures data correctness even in the presence of network partitions or node failures. |
37 | 31 |
|
38 |
| -<br /> |
| 32 | +- **[Horizontal and Vertical Scalability](https://docs.pingcap.com/tidb/stable/scale-tidb-using-tiup?utm_source=github&utm_medium=tidb)**: TiDB can be scaled horizontally by adding more nodes or vertically by increasing resources of existing nodes, all without downtime. TiDB's architecture separates computing from storage, enabling you to adjust both independently as needed for flexibility and growth. |
39 | 33 |
|
40 |
| -</div> |
| 34 | +- **[High Availability](https://docs.pingcap.com/tidbcloud/high-availability-with-multi-az?utm_source=github&utm_medium=tidb)**: Built-in Raft consensus protocol ensures reliability and automated failover. Data is stored in multiple replicas, and transactions are committed only after writing to the majority of replicas, guaranteeing strong consistency and availability, even if some replicas fail. Geographic placement of replicas can be configured for different disaster tolerance levels. |
41 | 35 |
|
42 |
| -## What is TiDB? |
| 36 | +- **[Hybrid Transactional/Analytical Processing (HTAP)](https://www.pingcap.com/blog/htap-demystified-defining-modern-data-architecture-tidb?utm_source=github&utm_medium=tidb)**: TiDB provides two storage engines: TiKV, a row-based storage engine, and TiFlash, a columnar storage engine. TiFlash uses the Multi-Raft Learner protocol to replicate data from TiKV in real time, ensuring consistent data between the TiKV row-based storage engine and the TiFlash columnar storage engine. The TiDB Server coordinates query execution across both TiKV and TiFlash to optimize performance. |
43 | 37 |
|
44 |
| -TiDB (/’taɪdiːbi:/, "Ti" stands for Titanium) is an open-source distributed SQL database that supports Hybrid Transactional and Analytical Processing (HTAP) workloads. It is MySQL compatible and features horizontal scalability, strong consistency, and high availability. |
| 38 | +- **[Cloud-Native](https://www.pingcap.com/cloud-native?utm_source=github&utm_medium=tidb)**: TiDB can be deployed in public clouds, on-premises, or natively in Kubernetes. [TiDB Operator](https://docs.pingcap.com/tidb-in-kubernetes/stable/tidb-operator-overview/?utm_source=github&utm_medium=tidb) helps manage TiDB on Kubernetes, automating cluster operations, while [TiDB Cloud](https://tidbcloud.com/?utm_source=github&utm_medium=tidb) provides a fully-managed service for easy and economical deployment, allowing users to set up clusters with just a few clicks. |
45 | 39 |
|
46 |
| -- [Key features](https://docs.pingcap.com/tidb/stable/overview#key-features) |
47 |
| -- [Architecture](#architecture) |
48 |
| -- [MySQL compatibility](https://docs.pingcap.com/tidb/stable/mysql-compatibility) |
| 40 | +- **[MySQL Compatibility](https://docs.pingcap.com/tidb/stable/mysql-compatibility?utm_source=github&utm_medium=tidb)**: TiDB is compatible with MySQL 8.0, allowing you to use familiar protocols, frameworks and tools. You can migrate applications to TiDB without changing any code, or with minimal modifications. Additionally, TiDB provides a suite of [data migration tools](https://docs.pingcap.com/tidb/stable/ecosystem-tool-user-guide?utm_source=github&utm_medium=tidb) to help easily migrate application data into TiDB. |
49 | 41 |
|
50 |
| -See what TiDB is capable of ONLINE at the [TiDB Playground](https://play.tidbcloud.com/?utm_source=github&utm_medium=tidb_readme). |
| 42 | +- **[Open Source Commitment](https://www.pingcap.com/blog/open-source-is-in-our-dna-reaffirming-tidb-commitment?utm_source=github&utm_medium=tidb)**: Open source is at the core of TiDB's identity. All source code is available on GitHub under the Apache 2.0 license, including enterprise-grade features. TiDB is built with the belief that open source enables transparency, innovation, and collaboration. We actively encourage contributions from the community to help build a vibrant and inclusive ecosystem, reaffirming our commitment to open development and accessibility for everyone. |
51 | 43 |
|
52 |
| -For more details and the latest updates, see the [TiDB documentation](https://docs.pingcap.com/tidb/stable) and [release notes](https://docs.pingcap.com/tidb/dev/release-notes). |
| 44 | +## Quick start |
53 | 45 |
|
54 |
| -For future plans, see the [TiDB roadmap](roadmap.md). |
| 46 | +> [!Tip] |
| 47 | +> As part of our commitment to open source, we want to reward all GitHub users. In addition to the free tier, you can get up to $2000 in TiDB Cloud Serverless credits for your open-source contributions - [Claim here](https://ossinsight.io/open-source-heroes/?utm_source=ossinsight&utm_medium=referral&utm_campaign=plg_OSScontribution_credit_05). |
55 | 48 |
|
56 |
| -## Quick start |
| 49 | +1. Start a TiDB Cluser |
57 | 50 |
|
58 |
| -### Start with TiDB Cloud |
| 51 | + - **On Local Playground**. To start a local test cluster, please refer to the [TiDB quick start guide](https://docs.pingcap.com/tidb/stable/quick-start-with-tidb#deploy-a-local-test-cluster?utm_source=github&utm_medium=tidb). |
59 | 52 |
|
60 |
| -TiDB Cloud is the fully-managed service of TiDB, currently available on AWS and GCP. |
| 53 | + - **On Kubernetes**. TiDB can be easily deployed in a self-managed Kubernetes environment or Kubernetes services on public clouds using TiDB Operator. For more details, please refer to the [TiDB on Kubernetes quick start guide](https://docs.pingcap.com/tidb-in-kubernetes/stable/get-started?utm_source=github&utm_medium=tidb). |
61 | 54 |
|
62 |
| -Quickly check out TiDB Cloud with [a free trial](https://tidbcloud.com/free-trial). |
| 55 | + - **Using TiDB Cloud (Recommended)**. TiDB Cloud offers a fully managed version of TiDB with a free tier, no credit card required, so you can get a free cluster in seconds and start easily: [Sign up for TiDB Cloud](https://tidbcloud.com/free-trial?utm_source=github&utm_medium=tidb). |
63 | 56 |
|
64 |
| -See the [TiDB Cloud Quick Start Guide](https://docs.pingcap.com/tidbcloud/tidb-cloud-quickstart). |
| 57 | +2. Learn About TiDB SQL: To explore the SQL capabilities of TiDB, refer to the [TiDB SQL documentation](https://docs.pingcap.com/tidb/stable/sql-statement-overview?utm_source=github&utm_medium=tidb). |
65 | 58 |
|
66 |
| -### Start with TiDB |
| 59 | +3. Use MySQL Driver or ORM to [Build an App with TiDB with TiDB](https://docs.pingcap.com/tidbcloud/dev-guide-overview?utm_source=github&utm_medium=tidb). |
67 | 60 |
|
68 |
| -See [TiDB Quick Start Guide](https://docs.pingcap.com/tidb/stable/quick-start-with-tidb). |
| 61 | +4. Explore key features, such as [data migration](https://docs.pingcap.com/tidbcloud/tidb-cloud-migration-overview?utm_source=github&utm_medium=tidb), [changefeed](https://docs.pingcap.com/tidbcloud/changefeed-overview?utm_source=github&utm_medium=tidb), [vector search](https://docs.pingcap.com/tidbcloud/vector-search-overview?utm_source=github&utm_medium=tidb), [HTAP](https://docs.pingcap.com/tidbcloud/tidb-cloud-htap-quickstart?utm_source=github&utm_medium=tidb), [disaster recovery](https://docs.pingcap.com/tidb/stable/dr-solution-introduction?utm_source=github&utm_medium=tidb), etc. |
69 | 62 |
|
70 |
| -### Start developing with TiDB |
71 | 63 |
|
72 |
| -See [TiDB Developer Guide](https://docs.pingcap.com/tidb/stable/dev-guide-overview) and [TiDB Cloud Developer Guide](https://docs.pingcap.com/tidbcloud/dev-guide-overview). |
| 64 | +## Need Help? |
73 | 65 |
|
74 |
| -## Community |
| 66 | +- You can connect with TiDB users, ask questions, find answers, and help others on our community platforms: [Discord](https://discord.gg/KVRZBR2DrG?utm_source=github), Slack ([English](https://slack.tidb.io/invite?team=tidb-community&channel=everyone&ref=pingcap-tidb), [Japanese](https://slack.tidb.io/invite?team=tidb-community&channel=tidb-japan&ref=github-tidb)), [Stack Overflow](https://stackoverflow.com/questions/tagged/tidb), TiDB Forum ([English](https://ask.pingcap.com/), [Chinese](https://asktug.com)), X [@PingCAP](https://twitter.com/PingCAP) |
75 | 67 |
|
76 |
| -You can join the following groups or channels to discuss or ask questions about TiDB, and to keep yourself informed of the latest TiDB updates: |
| 68 | +- For filing bugs, suggesting improvements, or requesting new features, use [Github Issues](https://github.com/pingcap/tidb/issues) or join discussions on [Github Discussions](https://github.com/orgs/pingcap/discussions). |
77 | 69 |
|
78 |
| -- Seek help when you use TiDB |
79 |
| - - TiDB Forum: [English](https://ask.pingcap.com/), [Chinese](https://asktug.com) |
80 |
| - - [Discord](https://discord.gg/KVRZBR2DrG?utm_source=github) |
81 |
| - - Slack channels: [#everyone](https://slack.tidb.io/invite?team=tidb-community&channel=everyone&ref=pingcap-tidb) (English), [#tidb-japan](https://slack.tidb.io/invite?team=tidb-community&channel=tidb-japan&ref=github-tidb) (Japanese) |
82 |
| - - [Stack Overflow](https://stackoverflow.com/questions/tagged/tidb) (questions tagged with #tidb) |
83 |
| -- Discuss TiDB's implementation and design |
84 |
| - - [TiDB Internals forum](https://internals.tidb.io/) |
85 |
| -- Get the latest TiDB news or updates |
86 |
| - - Follow [@PingCAP](https://twitter.com/PingCAP) on Twitter |
87 |
| - - Read the PingCAP [English Blog](https://www.pingcap.com/blog/?from=en) or [Chinese Blog](https://cn.pingcap.com/blog/) |
| 70 | +- To troubleshoot TiDB, refer to [Toubleshooting documentation](https://docs.pingcap.com/tidb/stable/tidb-troubleshooting-map?utm_source=github&utm_medium=tidb). |
88 | 71 |
|
89 |
| -For support, please contact [PingCAP](http://bit.ly/contact_us_via_github). |
| 72 | +## Architecture |
90 | 73 |
|
91 |
| -## Contributing |
| 74 | + |
92 | 75 |
|
93 |
| -The [community repository](https://github.com/pingcap/community) hosts all information about the TiDB community, including [how to contribute](https://github.com/pingcap/community/blob/master/contributors/README.md) to TiDB, how the TiDB community is governed, how [teams](https://github.com/pingcap/community/blob/master/teams/README.md) are organized. |
| 76 | +Learn more details about TiDB architecture in our [Docs](https://docs.pingcap.com/tidb/stable/tidb-architecture?utm_source=github&utm_medium=tidb). |
94 | 77 |
|
95 |
| -Contributions are welcomed and greatly appreciated. You can get started with one of the [good first issues](https://github.com/pingcap/tidb/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) or [help wanted issues](https://github.com/pingcap/tidb/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22). For more details on typical contribution workflows, see [Contribute to TiDB](https://pingcap.github.io/tidb-dev-guide/contribute-to-tidb/introduction.html). For more contributing information about where to start, click the contributor icon below. |
| 78 | +## Contributing |
96 | 79 |
|
97 |
| -[<img src="docs/contribution-map.png" alt="contribution-map" width="180">](https://github.com/pingcap/tidb-map/blob/master/maps/contribution-map.md#tidb-is-an-open-source-distributed-htap-database-compatible-with-the-mysql-protocol) |
| 80 | +TiDB is built on a commitment to open source, and we welcome contributions from everyone. Whether you are interested in improving documentation, fixing bugs, or developing new features, we invite you to shape the future of TiDB. |
98 | 81 |
|
99 |
| -Every contributor is welcome to claim their contribution swag by filling in and submitting this [form](https://forms.pingcap.com/f/tidb-contribution-swag). |
| 82 | +- See our [Contributor Guide](https://github.com/pingcap/community/blob/master/contributors/README.md#how-to-contribute) and [TiDB Development Guide](https://pingcap.github.io/tidb-dev-guide/index.html) to get started. |
100 | 83 |
|
101 |
| -<a href="https://next.ossinsight.io/widgets/official/compose-activity-trends?repo_id=41986369" target="_blank" style="display: block" align="center"> |
102 |
| - <picture> |
103 |
| - <source media="(prefers-color-scheme: dark)" srcset="https://next.ossinsight.io/widgets/official/compose-activity-trends/thumbnail.png?repo_id=41986369&image_size=auto&color_scheme=dark" width="822" height="auto"> |
104 |
| - <img alt="Activity Trends of pingcap/tidb - Last 28 days" src="https://next.ossinsight.io/widgets/official/compose-activity-trends/thumbnail.png?repo_id=41986369&image_size=auto&color_scheme=light" width="822" height="auto"> |
105 |
| - </picture> |
106 |
| -</a> |
| 84 | +- If you're looking for issues to work on, try looking at the [good first issues](https://github.com/pingcap/tidb/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) or [help wanted issues](https://github.com/pingcap/tidb/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22). |
107 | 85 |
|
108 |
| -## Case studies |
| 86 | +- The [contribution map](https://github.com/pingcap/tidb-map/blob/master/maps/contribution-map.md#a-map-that-guides-what-and-how-contributors-can-contribute) lists everything you can contribute. |
109 | 87 |
|
110 |
| -- [Case studies in English](https://www.pingcap.com/customers/) |
111 |
| -- [中文用户案例](https://cn.pingcap.com/case/) |
| 88 | +- The [community repository](https://github.com/pingcap/community) contains everything else you need. |
112 | 89 |
|
113 |
| -## Architecture |
| 90 | +- Don't forget to claim your contribution swag by filling in and submitting this [form](https://forms.pingcap.com/f/tidb-contribution-swag). |
114 | 91 |
|
115 |
| - |
| 92 | + |
| 93 | +<a href="https://next.ossinsight.io/widgets/official/compose-recent-active-contributors?repo_id=41986369&limit=30" target="_blank" style="display: block" align="center"> |
| 94 | + <picture> |
| 95 | + <source media="(prefers-color-scheme: dark)" srcset="https://next.ossinsight.io/widgets/official/compose-recent-active-contributors/thumbnail.png?repo_id=41986369&limit=30&image_size=auto&color_scheme=dark" width="655" height="auto"> |
| 96 | + <img alt="Active Contributors of pingcap/tidb - Last 28 days" src="https://next.ossinsight.io/widgets/official/compose-recent-active-contributors/thumbnail.png?repo_id=41986369&limit=30&image_size=auto&color_scheme=light" width="655" height="auto"> |
| 97 | + </picture> |
| 98 | +</a> |
116 | 99 |
|
117 | 100 | ## License
|
118 | 101 |
|
119 | 102 | TiDB is under the Apache 2.0 license. See the [LICENSE](./LICENSE) file for details.
|
120 | 103 |
|
| 104 | +## See Also |
| 105 | + |
| 106 | +- [TiDB Online Playgroud](https://play.tidbcloud.com/?utm_source=github&utm_medium=tidb_readme) |
| 107 | +- TiDB Case Studies: [TiDB Customers](https://www.pingcap.com/customers/?utm_source=github&utm_medium=tidb), [TiDB 事例記事](https://pingcap.co.jp/case-study/?utm_source=github&utm_medium=tidb), [TiDB 中文用户案例](https://cn.pingcap.com/case/?utm_source=github&utm_medium=tidb) |
| 108 | +- [TiDB User Documentation](https://docs.pingcap.com/tidb/stable?utm_source=github&utm_medium=tidb) |
| 109 | +- [TiDB Design Docs](/docs/design) |
| 110 | +- [TiDB Release Notes](https://docs.pingcap.com/tidb/dev/release-notes?utm_source=github&utm_medium=tidb) |
| 111 | +- [TiDB Blog](https://www.pingcap.com/blog/?utm_source=github&utm_medium=tidb) |
| 112 | +- [TiDB Roadmap](roadmap.md) |
| 113 | + |
121 | 114 | ## Acknowledgments
|
122 | 115 |
|
123 | 116 | - Thanks [cznic](https://github.com/cznic) for providing some great open source tools.
|
|
0 commit comments