I am learning Docker Swarm mode, and I was able to create Swarm locally using a web application and PostgreSQL database. I can scale them, and I see Roy creating replicas.
I think I understand how Docker Swarm can load the balance of regular web servers , but how does it deal with the box with database containers?
Out of context, usually Swarm databases handle replication in the form of plugins or advanced products such as a MySQL cluster . Other databases, such as Cassandra, have replication built directly into their product. In the context of Swarm, do we still need to rely on these plugins and database features?
What is the expected pattern for handling data consistency between replicas of a database container?
I know this is a very open question, but the Docker documentation is also very open, and I cannot find anything specific.
source share