#140140th of 204 in Backends, databases and hosting

dynamic-datasource

Spring Boot starter that routes calls to multiple datasources via @DS

Stars
5.2k
License
Apache-2.0
Last commit
Oct 2026
Last release
Oct 2026
Language
Java
Stars, last 29 weeks+61
25 Apr 2026: 5,127 stars2 May 2026: 5,129 stars9 May 2026: 5,131 stars16 May 2026: 5,135 stars23 May 2026: 5,137 stars30 May 2026: 5,143 stars6 Jun 2026: 5,145 stars13 Jun 2026: 5,148 stars20 Jun 2026: 5,150 stars27 Jun 2026: 5,150 stars4 Jul 2026: 5,152 stars11 Jul 2026: 5,155 stars18 Jul 2026: 5,158 stars25 Jul 2026: 5,160 stars1 Aug 2026: 5,160 stars8 Aug 2026: 5,160 stars15 Aug 2026: 5,162 stars22 Aug 2026: 5,164 stars29 Aug 2026: 5,167 stars5 Sept 2026: 5,169 stars12 Sept 2026: 5,172 stars19 Sept 2026: 5,174 stars26 Sept 2026: 5,176 stars3 Oct 2026: 5,176 stars10 Oct 2026: 5,177 stars17 Oct 2026: 5,181 stars24 Oct 2026: 5,184 stars31 Oct 2026: 5,187 stars7 Nov 2026: 5,188 stars14 Nov 2026: 5,188 stars

5,127 on 25 Apr 20265,188 on 14 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Java library for Spring Boot 1.5 to 4.x that picks which DataSource a method call runs against, using an @DS annotation and YAML-declared datasources. It covers read/write splitting, one-master-many-slaves groups, runtime add/remove of datasources, and local multi-datasource transactions, with Seata and Atomikos XA for distributed commits. It is a general JDBC routing library with no AI features, so it fits this list only loosely.

Who it is for: Java developers running Spring Boot apps against several databases

Strengths

  • Separate starters for Spring Boot 2, 3 and 4; CI-tested on JDK 17/21/25/27 and GraalVM Native
  • @DSTransactional gives local multi-datasource transactions with 7 propagation levels, no external coordinator
  • Datasources can be added, removed or lazily created at runtime, useful for per-tenant databases
  • Supports Druid, HikariCP, BeeCP, DBCP2, C3P0, Oracle UCP and ENC(...) encrypted credentials

Weaknesses

  • Connection pools and JDBC drivers are not bundled; you must add and align them yourself
  • Full reference docs are in Chinese; the English wiki is still being migrated
  • Only chooses the datasource; no sharding, schema management or ORM of its own
  • Not an AI project; the repo only ships an agent skill for troubleshooting help

What it needs

  • no GPU
  • Needs Spring Boot, JDK 8+ (JDK 17+ for Boot 3/4), JDBC driver, Connection pool (Druid, HikariCP, etc.)

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Also in Backends, databases and hosting

See all 204
Also in Backends, databases and hosting
RankProjectScore
1bunJavaScript and TypeScript runtime with bundler, test runner and package manager96.7k starscustom license94 out of 100
2coolifySelf-hosted Heroku and Vercel alternative that deploys apps and databases over SSH66.2k starsApache-2.093 out of 100
3strapiHeadless CMS that generates REST and GraphQL APIs from content models Live demo ↗ (opens in a new tab)73.5k starscustom license92 out of 100
#4traefikHTTP reverse proxy and load balancer that auto-discovers routes from orchestrators65.6k starsMIT92 out of 100
#5appwriteBackend with auth, databases, storage, functions and an MCP server for agents Live demo ↗ (opens in a new tab)58.2k stars+653 (+1.1%) in 30 daysBSD-3-Clause92 out of 100