Since I want to use different databases in different scenarios, I want to use AbstractRoutingDatasource. However, I could not find an appropriate setting in which I can use both AbstractRoutingDatasource and Spring Data Neo4j (e.g., using @Transactional and automatic session injection). How can I do that?
AbstractRoutingDatasource is not supported by Neo4j, it's JDBC specific.
Here is one possible solution to implement what you want:
Please let me know, if that helps.
It seems that causal clustering is for having redundancy in data storage and being able answer more requests. What I need here is different databases, each having its own independent data. Something similar to
AbstractRoutingDatasource or the solution you proposed in the previous post but with dynamic databases (databases being added and removed).