https://github.com/hexindai/s3harding
:zzz: A simple sharding interceptor for Mybatis
https://github.com/hexindai/s3harding
Last synced: 5 months ago
JSON representation
:zzz: A simple sharding interceptor for Mybatis
- Host: GitHub
- URL: https://github.com/hexindai/s3harding
- Owner: hexindai
- Created: 2020-03-16T13:05:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-13T14:26:08.000Z (about 6 years ago)
- Last Synced: 2023-07-26T21:57:49.817Z (almost 3 years ago)
- Language: Kotlin
- Homepage:
- Size: 180 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
s3harding
===
[](https://github.com/hexindai/s3harding/actions?query=workflow%3Aci-with-gradle)
[](https://codecov.io/gh/hexindai/s3harding)
[](https://search.maven.org/search?q=g:%22com.github.hexindai.s3harding%22%20AND%20a:%22s3harding-core%22)
[](https://search.maven.org/search?q=g:%22com.github.hexindai.s3harding%22%20AND%20a:%22s3harding-mybatis%22)
**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
* [s3harding-core](https://github.com/hexindai/s3harding/tree/master/s3harding-core)
* [s3harding-mybatis](https://github.com/hexindai/s3harding/tree/master/s3harding-mybatis)
## Contribution
If you find some bugs, please commit your PRs.