How do you ensure consistency in distributed DBs?

Technical