Basically, you will need to connect to data sources based on the current context such as Client, Customer. Sometimes, this is for security reasons, performance, scalability or isolation. It is usually applied in the Multi-tenant SaaS database (see more). In this article, we will provide steps to configure dynamic multiple data sources in Spring Boot and JPA.

Read More