An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

s3harding
===

[![Github Workflows](https://github.com/hexindai/s3harding/workflows/ci-with-gradle/badge.svg)](https://github.com/hexindai/s3harding/actions?query=workflow%3Aci-with-gradle)
[![codecov](https://codecov.io/gh/hexindai/s3harding/branch/master/graph/badge.svg)](https://codecov.io/gh/hexindai/s3harding)
[![Maven Central](https://img.shields.io/maven-central/v/com.github.hexindai.s3harding/s3harding-core.svg?label=s3harding-core)](https://search.maven.org/search?q=g:%22com.github.hexindai.s3harding%22%20AND%20a:%22s3harding-core%22)
[![Maven Central](https://img.shields.io/maven-central/v/com.github.hexindai.s3harding/s3harding-mybatis.svg?label=s3harding-mybatis)](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.