You may have noticed how we're using the Docker service command to scale our instances. This is a command that is similar to the basic Docker command, but with services and scaling in mind. We can use this command to create containers and scale them easily.
MySQL has no simple replication mechanism. There are only two ways of doing it and both have disadvantages:
- Creating a set of nodes as masters of each other, creating a complex mesh of connections that will eventually lead to chaos
- Creating a cluster, which involves more nodes and still leads to a complex deployment, which is easier to manage but resource-intensive to maintain
Looking back at our examples from previous chapters, we could change our service to use another ...