basis-company/sharding
最新稳定版本:0.8.2
Composer 安装命令:
composer require basis-company/sharding
包简介
Sharding framework
README 文档
README
Overview
Sharding is a php library designed to handle domain data that is split into segments, where each segment represents a collection of entities. The library provides mechanisms for persisting these segments across distributed storage systems using a bucket-based approach.
Check out the documentation or tests folder.
Key Concepts
Domain Segmentation
- The domain is divided into logical segments, each containing a collection of entities
- Segments allow for horizontal partitioning of data
Persistence Model
- Segment persistence is achieved through buckets
- Buckets are distributed across multiple storage backends
- Provides fault tolerance and scalability
- We assume that each storage node (or database instance) contains at most one logical bucket (shard). This means:
- No need to store a
bucket_id(or shard key) in the data records—since the storage location itself implies the bucket. - Sharding is storage-aware: The system routes requests based on the physical/logical storage, not an attribute in the data.
- No need to store a
Features
- Shard management: Easily create and manage data shards
- Bucket distribution: Automatic distribution of buckets across storage systems
- Entity operations: CRUD operations for entities within segments
- Storage abstraction: Support for multiple storage backends
- Scalability: Designed to handle large-scale data distribution
Installation
composer require basis-company/sharding
统计信息
- 总下载量: 298
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-20