I have an environment consisting of two servers running JBOSS and PostgreSQL. Each server writes to its own database and programmaticly synchronises some data to the other database. This causes problems when the network in unreliable.
I am looking for a better solution where the problems I am facing are handled by software instead of home made code. The current plan is to invest in 2 or 3 dedicated database servers.
My goals are:
- When I make SQL statements in JBOSS the database changes will get replicated to all database automaticly.
- If a database dies another one wil automaticly get chosen.
I have been looking at various middleware solutions and discovered that most are quite complicated, introduces many components and fixes problems that I do not have.
So my question is: What is the simplest solutions for only that problem?