MySQL Replication vs. Clustering ?
Hi guys, I need some help or clarification and I know many of you are technically inclined since many of you are developers and infrastructure personnel. Do you use MySQL replication or clustering? As far as my research is showing me, replication basically copies records from master to slave and there's a chance that if the master goes down, the slave won't have the latest recorded information.
The MAIN Question:
Has anyone been able to use a "replication" in such a way that the both servers are constantly in the same state (replicated) and if master fails, the slave works and then when master comes back, slave syncs back with master so that master is now fully in sync once more?
Or is it that I am thinking about clustering in this scenario? I just remembered someone talking about master-master replication so I have no idea what that means!
Thanks for any help you can provide, googling this does give some information but doesn't answer my question above entirely.
P.S Thinking about having VPS with mysql for scaling (more out of curiousity at this point in time)