Ross ROSS = Recommend OSS · open-source software intelligence for agents

baomidou/dynamic-datasource

dynamic datasource for springboot 多数据源 动态数据源 主从分离 读写分离 分布式事务 observed · 2026-08-28

github.com/baomidou/dynamic-datasource · homepage · Java · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

67/100

  • Activity 79
  • Release rhythm 34
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 3050
  • days_rel: 225
  • days_push: 127
  • n_releases_24m: 1

Full methodology

Adoption not part of the score

5184 stars · 1240 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

A Spring Boot starter that enables rapid integration of multiple, dynamically switchable data sources in Java applications. It supports datasource grouping, read/write splitting, master-slave setups, lazy loading, encrypted credentials, and Seata-based distributed transactions.

Use cases

  • connect to multiple databases in a spring boot app
  • implement read-write splitting with master and slave databases
  • switch datasources dynamically at runtime with annotations
  • manage distributed transactions across multiple datasources with seata
  • load balance queries across a group of replica databases
  • encrypt database credentials in spring boot configuration
  • add or remove datasources without restarting the application

When to choose

  • you use Spring Boot with Mybatis or Mybatis-Plus and need multiple databases
  • you want annotation-based datasource switching with read/write splitting
  • you need Seata-based distributed transactions across datasources
  • you want lazy datasource creation or runtime datasource management

When to avoid

  • you are not on the JVM/Spring Boot stack
  • you need full SQL sharding rather than simple datasource switching - consider ShardingSphere
  • you need a framework-agnostic solution outside Spring's ecosystem

Facets

library · maturity active

database database-driver middleware configuration-management databases backend web-development developer-tools jvm spring-boot-starter mybatis read-write-splitting multi-datasource seata distributed-transaction master-slave spring-boot

2 sources

Member repositories

RepositoryRoleHealth v2
baomidou/dynamic-datasourcemain67

For agents

markdown · JSON · MCP: product_card(name="baomidou/dynamic-datasource")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem