Giter Site home page Giter Site logo

j360-datasource's Introduction

j360-datasource

构建

  • Java 1.7+
  • Maven 3.2+
  • Spring 4.1.3

1.0功能介绍

  • 当前版本说明
    • 分表:基于配置的count通过loadbalance算法映射到对应的table_0 table_1 ... table_{count}
    • 分库:多数据源切换,通过loadbalance算法映射到对应的datasource
    • 读写分离:基于配置的write数据源、read数据库类型,匹配到对应的数据源类型
    • 多服务器轮训:基于lb算法中的RoundRobin算**训多个数据源分流,此处和分库最大的区别在于服务器的高可用分流
  • jdbc框架测试:ibatis
  • 数据库:Mysql

2.0升级说明

  • 后续版本升级方向
    • 自定义负载均衡算法,更新权重,将权重数据缓存计算
    • 更细每次都要去计算tablehash和databasehash的效率,将配置统一缓存使用缓存计算
    • 新增JavaConfig方式,新增spring boot集成和动态数据更新
    • 新增多重jdbc、orm框架支持 mybatis、hibernate、spring jdbc等

j360-datasource's People

Contributors

xuminwlt avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.