1. Deploy microservices to a Swarm cluster
+
+
-
+
-
+
a microservice performs a simple task
+++-
+
-
+
communicates with clients or
+
+ -
+
other microservices
+++-
+
-
+
communication mechanisms such as REST API requests or Websocket etc
+
+
+ -
+
+ -
+
+ + | +
+
+
+
|
+
1.1. Scalability
+You can scale your application by updating the number of replica nodes in the swarm cluster
+...
+ deploy:
+ replicas: 15
+ placement:
+ max_replicas_per_node: 1
+ constraints:
+ - node.labels.region==regio1
+...
++ + | +
+ Segmentation
+Dynamic infrastructure: services can scale up and down without waiting for each other.
+ |
+
1.2. Availability
+No single point of failure.
+