I need two instances of Wildfly running on two different machines using the same database. How do I implement such an use case? So far I see two options:
- mysql databases on both machines (mirroring each other)
- external mysql database and both instances connecting to that remote db
What is Best Practice and what do I have to consider? I can not find any information on how to add a remote database as datasource to wildfly, is this bad practice?
Update: Assuming I have chosen the second approach, how to add a remote database as datasource to wildfly?