定制 basis-company/sharding 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

basis-company/sharding

最新稳定版本:0.8.2

Composer 安装命令:

composer require basis-company/sharding

包简介

Sharding framework

README 文档

README

Ask DeepWiki Latest Version License: MIT Testing Total Downloads

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.

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固