Tag

Dynamic Data Source

0 views collected around this technical thread.

Java Architect Essentials
Java Architect Essentials
Apr 6, 2025 · Backend Development

Dynamic Data Source Switching in SpringBoot Using AOP and Custom Annotations

This article demonstrates how to implement MySQL master‑slave dynamic data source switching in a SpringBoot 3.0.4 project using AOP, custom annotations, and configuration files, ensuring automatic failover to the master when a slave becomes unavailable.

AOPDynamic Data SourceJava
0 likes · 14 min read
Dynamic Data Source Switching in SpringBoot Using AOP and Custom Annotations
macrozheng
macrozheng
Feb 17, 2025 · Backend Development

Master Dynamic MySQL Master‑Slave Switching in Spring Boot with AOP

This guide explains how to use Spring Boot, AOP, and custom annotations to implement dynamic MySQL master‑slave data source switching, automatically falling back to the master when a slave fails, covering configuration, Maven dependencies, enum definitions, data source beans, routing logic, and usage examples.

AOPDynamic Data SourceJava
0 likes · 16 min read
Master Dynamic MySQL Master‑Slave Switching in Spring Boot with AOP
Java Tech Enthusiast
Java Tech Enthusiast
Feb 6, 2025 · Backend Development

Dynamic Data Source Switching in SpringBoot using AOP and Custom Annotations

This guide shows how to implement dynamic MySQL master‑slave switching in a SpringBoot 3 project using AOP and a custom @DataSource annotation, configuring Druid pools, defining a routing datasource, and automatically falling back to the master when a slave fails for high availability.

AOPDynamic Data SourceJava
0 likes · 14 min read
Dynamic Data Source Switching in SpringBoot using AOP and Custom Annotations
IT Architects Alliance
IT Architects Alliance
Apr 14, 2023 · Databases

Comprehensive Guide to Database Horizontal Scaling, Smooth 2N Expansion, and Keepalived High‑Availability Configuration

This technical guide explains how to scale a sharded database horizontally by introducing five expansion schemes—including shutdown, write‑stop, log‑based, dual‑write, and smooth 2N approaches—covers MariaDB installation, master‑master replication setup, dynamic data‑source configuration with ShardingJDBC, and detailed Keepalived high‑availability configuration for seamless service continuity.

Database ScalingDual‑WriteDynamic Data Source
0 likes · 31 min read
Comprehensive Guide to Database Horizontal Scaling, Smooth 2N Expansion, and Keepalived High‑Availability Configuration
Architecture & Thinking
Architecture & Thinking
Mar 17, 2022 · Backend Development

Implement Dynamic Multi-DataSource Routing in Spring Boot with Annotations

This article explains why dynamic data sources are needed in high‑traffic Spring Boot applications, shows how to configure multiple databases via Maven, YAML and Java, and demonstrates a custom annotation‑driven AOP solution for seamless runtime routing.

AOPAnnotationDynamic Data Source
0 likes · 13 min read
Implement Dynamic Multi-DataSource Routing in Spring Boot with Annotations
DeWu Technology
DeWu Technology
Aug 13, 2021 · Databases

Smooth Migration from Client-Side to Proxy-Side Sharding in Database Architecture

The article explains how to transition from client‑side sharding with Sharding‑JDBC to proxy‑side sharding using Rainbow Bridge DAL by adding new, switchable data sources, employing AbstractRoutingDataSource and configuration flags for gradual migration, while addressing read‑write separation, unsupported SQL functions, and ensuring backward compatibility.

Backward CompatibilityDynamic Data SourceRainbow Bridge DAL
0 likes · 7 min read
Smooth Migration from Client-Side to Proxy-Side Sharding in Database Architecture
JD Tech
JD Tech
Feb 22, 2019 · Databases

Issues When Using Transactions with Database Read/Write Splitting

This article examines the challenges of using transactions with database read/write splitting, including potential master‑slave switching errors, connection‑pool deadlocks caused by isolation levels and propagation, and presents Spring‑based dynamic data source and transaction management solutions.

DatabaseDynamic Data SourceIsolation Level
0 likes · 6 min read
Issues When Using Transactions with Database Read/Write Splitting
Qunar Tech Salon
Qunar Tech Salon
Sep 20, 2017 · Backend Development

Design and Implementation of a One‑Stop Fund Processing Platform

This article describes the design and implementation of a five‑layer one‑stop fund processing platform, covering architecture, rapid business support, hotspot data handling, storage optimization, and query improvements, including sharding, asynchronous processing, and dynamic data source strategies to ensure scalability and reliability.

Database OptimizationDynamic Data SourceSharding
0 likes · 13 min read
Design and Implementation of a One‑Stop Fund Processing Platform