I am using Play Java 2.7 with Play Ebean.
I have a database environment with PostgreSQL which has:
- one master node (which handles all of the writes)
- multiples slaves nodes (which handle all of the reads).
I want to replicate this behavior in my Play Application. I would like to do a configuration where:
- modelObject.save() => automatically uses the master node
- Model.find()… => automatically uses one of the available slave node.
How can I do that?