#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
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| Rank | Project | Score |
|---|---|---|
| 1 | bunJavaScript and TypeScript runtime with bundler, test runner and package manager | 94 out of 100 |
| 2 | coolifySelf-hosted Heroku and Vercel alternative that deploys apps and databases over SSH | 93 out of 100 |
| 3 | strapiHeadless CMS that generates REST and GraphQL APIs from content models | 92 out of 100 |
| #4 | traefikHTTP reverse proxy and load balancer that auto-discovers routes from orchestrators | 92 out of 100 |
| #5 | appwriteBackend with auth, databases, storage, functions and an MCP server for agents | 92 out of 100 |