Let say that for each customer you have to dynamically create a database when customer subscribes to services, all databases are based on same schema.
As customers are authenticated (one master database managing all customer details), their unique username is used to access the corresponding database and retrieve needed information.
Question 1: Can the above be considered a good approach to this kind of problem or is there a better solution?
Question 2: In case there is no better solution, how can this be implemented using Spring & Hibernate?
Edit: What I need to know, is how to implement datasource creation upon customer subscription without editing the Spring configuration file. It needs to be automated.
Question 1: There are various options. This article talks about these options with pros and cons of each option.
Question 2:
Related