搜索

pdf文档 Apache ShardingSphere 5.0.0 Document

3.15 MB 403 页 0 下载 412 浏览 0 评论 0 收藏
语言 格式 评分
英语
.pdf
3
摘要
Apache ShardingSphere 5.0.0 is a Database Plus project that provides data sharding, distributed transaction, and distributed governance capabilities. It consists of three independent products: ShardingSphere-JDBC, ShardingSphere-Proxy, and ShardingSphere-Sidecar. The project focuses on reusing existing databases and their upper layers rather than creating new databases. Its core concepts include Link (flexible adaptation of database protocols and SQL dialects), Enhance (transparently providing additional features like sharding and encryption), and Pluggable (a micro-kernel architecture with three layers: L1 Kernel Layer for basic capabilities, L2 Feature Layer for enhanced features, and L3 Ecosystem Layer for database ecosystem integration). The pluggable architecture allows developers to customize their own systems like building blocks, enabling flexible feature embedding and component replacement.
AI总结
Apache ShardingSphere 5.0.0 是一个定位为“Database Plus”的开源项目,旨在构建多模型数据库之上的新标准和生态系统。它专注于现有数据库的扩展和增强,而非完全替换数据库。其核心理念包括: 1. **Link**:灵活适配数据库协议、SQL方言和存储,快速连接应用与多模异构数据库。 2. **Enhance**:通过捕获数据库访问入口,提供透明化的扩展功能,如分片、读写分离、数据加密、鉴权、治理等。 3. **Pluggable**:基于微内核和三层插件架构(L1内核层、L2功能层、L3生态层),支持功能和数据库生态的灵活嵌入,允许开发者像搭建乐高积木一样定制自己的 ShardingSphere。 ### 核心架构 - **L1 内核层**:提供基础数据库能力,包括查询优化器、分布式事务引擎、执行引擎等,支持插件化替换。 - **L2 功能层**:提供增强能力,如分片、读写分离、高可用性、数据加密等,支持零或多个组件的组合使用。 - **L3 生态层**:支持多种数据库协议(MySQL、PostgreSQL、SQLServer、Oracle 等)和插件扩展。 ### 主要功能 - **分布式事务**:支持分布式事务,确保数据一致性。 - **弹性扩展**:支持数据分片和扩展,适用于大规模数据场景。 - **分布式治理**:提供治理能力,如熔断、限流、监控等。 - **透明增强**:通过适配器和插件,透明地增强数据库功能。 ### 产品模块 1. **ShardingSphere-JDBC**:轻量级 Java 框架,作为增强的 JDBC 驱动,支持 ORM 工具(如 MyBatis、Hibernate)和直接 JDBC 使用。 2. **ShardingSphere-Proxy**:数据库代理层,支持多语言和异构数据库,提供透明化的分片和读写分离功能。 3. **ShardingSphere-Sidecar**(规划中):专注于云原生环境(如 Kubernetes 和 Mesos)的支持。 ### 快速入门 - **ShardingSphere-JDBC**:通过 Maven 依赖引入、规则配置和数据源创建即可快速使用。 - **ShardingSphere-Proxy**:通过规则配置、依赖引入和服务器启动实现快速部署。 ### 核心目标 - **DistSQL**:打破中间件与数据库的边界,让开发者像使用数据库一样使用 Apache ShardingSphere。 - **Pluggable Architecture**:通过插件化设计,让开发者灵活定制功能模块,提升项目扩展性和质量。 Apache ShardingSphere 5.0.0 通过其强大的插件化架构和灵活的扩展能力,为分布式数据库的开发和治理提供了强大的支持。
P1
P2
P3
P4
P5
P6
P7
下载文档到本地,方便使用
- 可预览页数已用完,剩余 396 页请下载阅读 -
文档评分
请文明评论,理性发言.