Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

shardingsphere

> 数据库
Open source

Empowering Data Intelligence with Distributed SQL for Sharding, Scalability, and Security Across All Databases.

20.8K stars0 likes3 views
WebsiteGitHub

About

Empowering Data Intelligence with Distributed SQL for Sharding, Scalability, and Security Across All Databases.

## [Apache ShardingSphere - Enterprise Distributed Database Ecosystem](https://shardingsphere.apache.org/) Building the standards and ecosystem on top of heterogeneous databases, empowering enterprise data architecture transformation **Official Website:** [https://shardingsphere.apache.org/](https://shardingsphere.apache.org/)
### OVERVIEW
Apache ShardingSphere is positioned as **Database Plus**, a standard and ecosystem built on top of heterogeneous databases. As an operating system layer above databases, ShardingSphere does not create new databases but focuses on maximizing the computing capabilities of existing databases, providing unified data access and enhanced computing capabilities. **Database Plus Core Concept**: By building a standardized and scalable enhancement layer above databases, it makes heterogeneous databases as simple to use as a single database, providing unified governance capabilities and distributed computing capabilities for enterprise data architectures. **Connect, Enhance, and Pluggable** are the three core pillars of Apache ShardingSphere: - **Connect:** Building database upper-layer standards, quickly connecting applications with multi-modal heterogeneous databases through flexible adaptation of database protocols, SQL dialects, and storage formats, providing unified data access experience; - **Enhance:** As a database computing enhancement engine, transparently providing enterprise-grade capabilities including distributed computing (data sharding, readwrite-splitting, SQL federation), data security (encryption, masking, audit), traffic control (circuit breaker, rate limiting), and observability (monitoring, tracing, analysis); - **Pluggable:** Adopting a micro-kernel + 3-layer pluggable architecture to achieve complete decoupling of kernel, functional components, and ecosystem integration. Developers can flexibly customize unique data architecture solutions that meet enterprise needs, just like building with LEGO blocks. **Differentiation Advantages**: - **vs Distributed Databases**: More lightweight, protecting existing investments, avoiding vendor lock-in - **vs Traditional Middleware**: Richer features, more complete ecosystem, more flexible architecture - **vs Cloud Vendor Solutions**: Support multi-cloud deployment, avoid technology binding, autonomous and controllable ShardingSphere became an [Apache](https://apache.org/index.html#projects-list) Top-Level Project on April 16, 2020, and has been adopted by [19,000+ projects](https://github.com/search?l=Maven+POM&q=shardingsphere+language%3A%22Maven+POM%22&type=Code) worldwide. ### DUAL-ACCESS ARCHITECTURE DESIGN
ShardingSphere adopts a unique dual-access architecture design, providing two access ends - JDBC and Proxy - that can be deployed independently or in hybrid deployment, meeting diverse requirements for different scenarios. #### ShardingSphere-JDBC: Lightweight Access End **Positioning**: Lightweight Java framework, enhanced JDBC driver **Core Features**: - **Client-side direct connection**: Shares resources with applications, decentralized architecture - **High performance, low overhead**: Direct database connection with minimal performance loss - **Complete compatibility**: Compatible with all ORM frameworks (MyBatis, JPA, Hibernate, etc.) - **Zero additional deployment**: Provided as JAR package, no independent deployment and dependencies required **Use Cases**: High-performance Java applications, integrated deployment with business applications, pursuing ultimate performance #### ShardingSphere-Proxy: Enterprise Access End **Positioning**: Transparent database proxy, independently deployed server-side **Core Features**: - **Static entry point**: Independent deployment from applications, providing stable database access entry - **Heterogeneous language support**: Supports any MySQL/PostgreSQL protocol compatible client - **DBA friendly**: Database operation and maintenance management interface, convenient for O&M personnel - **Enterprise-grade features**: Supports cluster deployment, load balancing, failover **Use Cases**: Heterogeneous language environments, database operation and maintenance management, enterprise applications requiring unified access entry #### Hybrid Architecture Advantages By hybridizing ShardingSphere-JDBC and ShardingSphere-Proxy with unified configuration through the same registry center, you can flexibly build application systems suitable for various scenarios: - **Architectural flexibility**: Architects can freely adjust the optimal system architecture - **Scenario adaptability**: Select the most suitable access method according to different business scenarios - **Unified management**: Single configuration, multi-end collaboration, simplifying O&M complexity - **Progressive evolution**: Support smooth evolution path from JDBC to Proxy ### AI ABSTRACTION ### DOCUMENTATION📜
For full documentation & more details, visit: [Docs](https://shardingsphere.apache.org/document/current/en/overview/) ### CONTRIBUTION🚀🧑💻
For guides on how to get started and setup your environment, contributor & committer guides, visit: [Contribution Guidelines](https://shardingsphere.apache.org/community/en/involved/) ### Team
We deeply appreciate [community contributors](https://shardingsphere.apache.org/community/en/team) for their dedication to Apache ShardingSphere. ## ### COMMUNITY & SUPPORT💝🖤
:link: [Mailing List](https://shardingsphere.apache.org/community/en/involved/subscribe/). Best for: Apache community updates, releases, changes. :link: [GitHub Issues](https://github.com/apache/shardingsphere/issues). Best for: design discussions, bug reports, or anything development related. :link: [X](https://x.com/ShardingSphere). Best for: keeping up to date on everything ShardingSphere. :link: [LinkedIn](https://www.linkedin.com/showcase/apache-shardingsphere/e). Best for: professional networking and career development with other ShardingSphere contributors. ## ### PROJECT STATUS
:white_check_mark: **Version 5.5.4-SNAPSHOT**: Actively under development :tada: 🔗 For the release notes, follow this link to the relevant [GitHub page](https://github.com/apache/shardingsphere/blob/master/RELEASE-NOTES.md). :soon: **Version 5.5.4** We are currently developing version 5.5.4, which includes multiple security enhancements and performance optimizations. Keep an eye on the [milestones page](https://github.com/apache/shardingsphere/milestones) of this repo for the latest development progress. [comment]: <> (##) [comment]: <> (### NIGHTLY BUILDS:) [comment]: <> (
) [comment]: <> (A nightly build of ShardingSphere from the latest master branch is available. ) [comment]: <> (The package is updated daily and is available [here](http://117.48.121.24:8080).) [comment]: <> (##) [comment]: <> (**‼️ Notice:**) [comment]: <> (
) [comment]: <> (Use this nightly build at your own risk! ) [comment]: <> (The branch is not always fully tested. ) [comment]: <> (The nightly build may contain bugs, and there may be new features added which may cause problems with your environment. ) ## ### TECHNICAL ARCHITECTURE EVOLUTION
Apache ShardingSphere adopts a micro-kernel + 3-layer pluggable architecture, achieving complete decoupling of the kernel, functional components, and ecosystem integration, providing developers with ultimate flexibility and extensibility. #### Micro-Kernel + 3-Layer Pluggable Model **Core Layer**: - Query optimizer: Intelligent SQL routing and execution plan optimization - Distributed transaction: ACID transaction guarantees and consistency coordination - Execution engine: Efficient distributed execution and result aggregation **Feature Layer**: - Data sharding, readwrite-splitting, federation query - Data encryption, data masking, SQL audit - Shadow database, observability, traffic control **Ecosystem Layer**: - Database protocol adaptation (MySQL, PostgreSQL, Oracle, etc.) - Registry center integration (ZooKeeper, ETCD, etc.) - Configuration management, service discovery, monitoring integration #### Technical Innovation Highlights **Complete Decoupling Architecture**: - Database types completely decoupled, supporting rapid integration of new databases - Functional modules completely decoupled, supporting on-demand feature combination Apache ShardingSphere consists of two access ends - JDBC and Proxy - that can be deployed independently or in hybrid deployment, providing unified distributed database solutions for diverse application scenarios including Java isomorphism, heterogeneous languages, and cloud-native environments. ### ShardingSphere-JDBC
A lightweight Java framework providing extra services at the Java JDBC layer. With the client end connecting directly to the database, it provides services in the form of a jar and requires no extra deployment and dependence. :link: For more details, follow this [link to the official website](https://shardingsphere.apache.org/document/current/en/overview/#shardingsphere-jdbc). > **Note**: When using ShardingSphere-JDBC adapter, pay attention to your application's memory configuration. Antlr uses an internal cache to improve performance during SQL parsing. If your application has too many SQL templates, the cache will continue to grow, occupying a large amount of heap memory. According to feedback from the ANTLR official [issue#4232](https://github.com/antlr/antlr4/issues/4232), this issue has not yet been optimized. When connecting your application to ShardingSphere-JDBC, it is recommended to set a reasonable heap memory size using the `-Xmx` parameter to avoid OOM errors caused by insufficient memory. ### ShardingSphere-Proxy
A transparent database proxy, providing a database server that encapsulates the database binary protocol to support heterogeneous languages. Friendlier to DBAs, the MariaDB, MySQL and PostgreSQL version now provided can use any kind of terminal. :link: For more details, follow this [link to the official website](https://shardingsphere.apache.org/document/current/en/overview/#shardingsphere-proxy). ### Hybrid Architecture
ShardingSphere-JDBC adopts a decentralized architect

Issues· 212 open

View all issuesOpen on GitHub
  • #40016

    E2E - SQL and E2E - Operation fail at startup: dorny/paths-filter v4.0.1 was removed from the ASF allowlist

    Updated Sep 30, 2026
  • #40014

    ClickHouse and Presto default nulls order should be LAST, not LOW

    Updated Sep 30, 2026
  • #39935

    Support Firebird Wire Protocol packets: Common responses

    Updated Sep 30, 2026
  • #40001

    Cross-shard `SELECT DISTINCT` returns duplicate rows on MySQL when the column contains NULL

    Updated Sep 29, 2026
  • #39994

    ALTER SHARDING KEY GENERATE STRATEGY checks the strategy name instead of the generated key generator name for duplicates

    Updated Sep 29, 2026
  • #39993

    DROP SHARDING TABLE RULE reports success but keeps a rule whose name differs only in case

    Updated Sep 29, 2026
  • #39992

    WEIGHT load balancer applies stale weights when read data sources are swapped

    Updated Sep 29, 2026
  • #39772

    Firebird Proxy does not enforce a maximum buffered BLOB write size (isc_blobtoobig)

    Updated Sep 28, 2026
  • #39376

    [Suggestion]Add community AI-assisted first-pass PR review workflow

    type: discussionstatus: volunteer wantedUpdated Sep 28, 2026
  • #39051

    Support op_seek_blob operation in Firebird Proxy

    Updated Sep 28, 2026

> Tags

Javabigdatadata-encryptiondata-pipelinedatabase

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库