upgrade to 3.0.0
25 files changed
tree: 4682345c751a7367dfae7758217d6d877f1d8eac
  1. .github/
  2. sharding-core/
  3. sharding-jdbc/
  4. sharding-opentracing/
  5. sharding-orchestration/
  6. sharding-proxy/
  7. sharding-sql-test/
  8. sharding-transaction/
  9. src/
  10. .gitignore
  11. .travis.yml
  12. CODE_OF_CONDUCT.md
  13. CONTRIBUTING.md
  14. LICENSE
  15. pom.xml
  16. README.md
  17. README_ZH.md
  18. RELEASE-NOTES.md
  19. RELEASE-NOTES_ZH.md
  20. ROADMAP.md
README.md

Sharding-Sphere - Distributed Database Middleware Ecosphere

Official website: http://shardingsphere.io/

License Gitter GitHub release

Build Status Coverage Status snyk OpenTracing-1.0 Badge Skywalking Tracing

Document

EN doc Roadmap

CN doc

Overview

Sharding-Sphere is an open-source ecosystem consisted of a set of distributed database middleware solution, including 3 independent products, Sharding-JDBC, Sharding-Proxy & Sharding-Sidecar (todo). They all provide functions of data sharding, distributed transaction and database orchestration, applicable in a variety of situations such as Java isomorphism, heterogeneous language and cloud native.

Aiming at reasonably making full use of the computation and storage capacity of database in distributed system, Sharding-Sphere defines itself as a middleware, rather than a totally new type of database. As the cornerstone of many enterprises, relational database still takes a huge market share. Therefore, at current stage, we prefer to focus on its increment instead of a total overturn.

Sharding-Sphere Scope

Sharding-JDBC

Maven Status

Sharding-JDBC defines itself as a lightweight Java framework that provides extra service at Java JDBC layer. With client end connecting directly to the database, it provides service in the form of jar and requires no extra deployment and dependence. It can be considered as an enhanced JDBC driver, which is fully compatible with JDBC and all kinds of ORM frameworks.

  • Applicable in any ORM framework based on Java, such as JPA, Hibernate, Mybatis, Spring JDBC Template or direct use of JDBC.
  • Based on any third-party database connection pool, such as DBCP, C3P0, BoneCP, Druid, HikariCP.
  • Support any kind of database that conforms to JDBC standard: MySQL,Oracle,SQLServer and PostgreSQL for now.

Sharding-JDBC Architecture

Sharding-Proxy

Download Docker Pulls

Sharding-Proxy defines itself as a transparent database proxy, providing a database server that encapsulates database binary protocol to support heterogeneous languages. Friendlier to DBA, the MySQL version provided now can use any kind of client access (such as MySQL Command Client, MySQL Workbench, etc.) that is compatible of MySQL protocol to operate data.

  • Totally transparent to applications, it can be used directly as MySQL.
  • Applicable to any kind of compatible of client end that is compatible of MySQL protocol.

Sharding-Proxy Architecture

Sharding-Sidecar(TBD)

Sharding-Sidecar (TBD) defines itself as a cloud native database agent of Kubernetes or Mesos environment, in charge of all the access to database in the form of DaemonSet. Through a decentralized and zero-cost solution, it provides a mesh layer interacting with database, i.e., Database Mesh, also referred to as database grid.

Database Mesh emphasizes on how to connect distributed database access application with the database. Focusing on interaction, it effectively organizes the interaction between messy applications and database. The application and database that use Database Mesh to visit database will form a large grid system, where they just need to be put into the right position accordingly. They are all governed by mesh layer.

Sharding-Sidecar Architecture

Sharding-JDBCSharding-ProxySharding-Sidecar
DatabaseAnyMySQLMySQL
Connections Cost NumberHighLowHigh
Heterogeneous LanguageJava OnlyAnyAny
PerformanceLow lossRelatively High lossLow loss
DecentralizationYesNoNo
Static EntryNoYesNo

Features

Data Sharding

  • Database sharding & Table sharding
  • Read-write splitting
  • Distributed primary key

Distributed Transaction (Doing)

  • XA transaction
  • BASE transaction

Database Orchestration

  • Dynamic configuration
  • Fusing & Disabling
  • Open tracing
  • Multiple data replication (Planing)
  • Elastic scaling out (Planing)

Roadmap

Roadmap