tidb mysql 协议_TiDB 一个分布式NewSQL数据库兼容MySQL协议

TiDB是一个开源的NewSQL数据库,支持HTAP工作负载,具备水平扩展性、强一致性及高可用性。它兼容MySQL语法,能无缝对接现有应用,同时避免了ETL过程。通过Raft共识算法实现高可用性,当故障发生时能够自我修复。TiDB适用于云环境,其存储层TiKV是CNCF成员项目。
摘要由CSDN通过智能技术生成

d479e58c44fe8d2be8a00efa7e4d348d.png

68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70696e676361702f746964622e73766768747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c616e67756167652d476f2d626c75652e73766768747470733a2f2f7472617669732d63692e6f72672f70696e676361702f746964622e7376673f6272616e63683d6d617374657268747470733a2f2f676f7265706f7274636172642e636f6d2f62616467652f6769746875622e636f6d2f70696e676361702f7469646268747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f70696e676361702f746964622e7376673f6c6162656c3d72656c6561736568747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f70696e676361702f746964622e73766768747470733a2f2f636972636c6563692e636f6d2f67682f70696e676361702f746964622e7376673f7374796c653d736869656c6468747470733a2f2f636f6465636f762e696f2f67682f70696e676361702f746964622f6272616e63682f6d61737465722f67726170682f62616467652e73766768747470733a2f2f696d672e736869656c64732e696f2f62616467652f476f646f632d7265666572656e63652d626c75652e737667

What is TiDB?

TiDB ("Ti" stands for Titanium) is an open-source NewSQL database that supports Hybrid Transactional and Analytical Processing (HTAP) workloads. It is MySQL compatible and features horizontal scalability, strong consistency, and high availability.

Horizontal Scalability

TiDB expands both SQL processing and storage by simply adding new nodes. This makes infrastructure capacity planning both easier and more cost-effective than traditional relational databases which only scale vertically.

MySQL Compatible Syntax

TiDB acts like it is a MySQL 5.7 server to your applications. You can continue to use all of the existing MySQL client libraries, and in many cases, you will not need to change a single line of code in your application. Because TiDB is built from scratch, not a MySQL fork, please check out the list of known compatibility differences.

Distributed Transactions with Strong Consistency

TiDB internally shards table into small range-based chunks that we refer to as "regions". Each region defaults to approximately 100MiB in size, and TiDB uses a Two-phase commit internally to ensure that regions are maintained in a transactionally consistent way.

Cloud Native

TiDB is designed to work in the cloud -- public, private, or hybrid -- making deployment, provisioning, operations, and maintenance simple.

The storage layer of TiDB, called TiKV, became a Cloud Native Computing Foundation member project in 2018. The architecture of the TiDB platform also allows SQL processing and storage to be scaled independently of each other in a very cloud-friendly manner.

Minimize ETL

TiDB is designed to support both transaction processing (OLTP) and analytical processing (OLAP) workloads. This means that while you may have traditionally transacted on MySQL and then Extracted, Transformed and Loaded (ETL) data into a column store for analytical processing, this step is no longer required.

High Availability

TiDB uses the Raft consensus algorithm to ensure that data is highly available and safely replicated throughout storage in Raft groups. In the event of failure, a Raft group will automatically elect a new leader for the failed member, and self-heal the TiDB cluster without any required manual intervention. Failure and self-healing operations are also transparent to applications.

For more details and latest updates, see official TiDB blog.

Adopters

View the current list of in-production TiDB adopters here.

Roadmap

Read the Roadmap.

Quick start

Read the Quick Start Guide, which includes deployment methods using Ansible, Docker, and Kubernetes.

Getting Help

Documentation

Architecture

390a96af3c8e2bd7fa7e715166e4ed56.png

Contributing

a71fc3375e493ac9e0a1a2f407b3099f.png

Contributions are welcomed and greatly appreciated. See CONTRIBUTING.md for details on submitting patches and the contribution workflow. For more contributing information, click on the contributor icon above.

License

TiDB is under the Apache 2.0 license. See the LICENSE file for details.

Acknowledgments

Thanks cznic for providing some great open source tools.

Thanks GolevelDB, BoltDB, and RocksDB for their powerful storage engines.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值