Skip to content

💤 A simple sharding interceptor for Mybatis

Notifications You must be signed in to change notification settings

hexindai/s3harding

Repository files navigation

s3harding

Github Workflows codecov Maven Central Maven Central

Work in progress. Do not use it in a production deployment. 😄

Introduction

A simple sharding strategy based on key sharding.

Rewriting SQL for sharding. We can custom any sharding strategy based shard key which is used for generating sharded SQL. Currently, shards are logical that all shards are in a database node(this is dumb). In future, it will support separate database nodes.

Features:

  • Key based sharding (hash based sharding)
  • Only one database node (dumb)

Usages

Contribution

If you find some bugs, please commit your PRs.