| Abstract:To address the challenges of rapid tenant data source switching, consistent cross-service configuration updates, and end-to-end tenant identification propagation in microservices-based multi-tenant applications, this paper proposes a framework in a cloud-native environment. The framework integrates dynamic data source management, event-driven configuration synchronization, and a full-link tenant identification transmission mechanism, achieving millisecond-level data source switching, low-latency configuration updates, and simplified development. Experiments under 100-tenant concurrency show an average data source switching time of 7.2ms, outperforming the MyCat solution (15.9ms) by about 54.7% and the Hibernate solution (99.5ms) by approximately 14 times, with notable throughput advantages. Its innovations in declarative integration, dynamic response, and full-stack isolation provide a standardized solution for such development. |