The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks
-
Upload
docker-inc -
Category
Technology
-
view
303 -
download
0
Transcript of The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks
![Page 1: The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks](https://reader036.fdocuments.in/reader036/viewer/2022070511/58a1698d1a28abc1708b691f/html5/thumbnails/1.jpg)
Container Networking: The Good, The Bad and The Ugly
Mathew LodgeWeaveworks
![Page 2: The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks](https://reader036.fdocuments.in/reader036/viewer/2022070511/58a1698d1a28abc1708b691f/html5/thumbnails/2.jpg)
![Page 3: The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks](https://reader036.fdocuments.in/reader036/viewer/2022070511/58a1698d1a28abc1708b691f/html5/thumbnails/3.jpg)
Container networking in last year• Good: IP per container networks, auto-
updating DNS, self-wiring networks• Bad: Understanding what’s actually going on• Ugly: Robustness, multicast
![Page 4: The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks](https://reader036.fdocuments.in/reader036/viewer/2022070511/58a1698d1a28abc1708b691f/html5/thumbnails/4.jpg)
4
Typical microservice scenario
Worker Worker Worker
API Client API Client
API proxy / load balancer
![Page 5: The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks](https://reader036.fdocuments.in/reader036/viewer/2022070511/58a1698d1a28abc1708b691f/html5/thumbnails/5.jpg)
5
The ugly: networking 1 year ago
Docker host 1 Docker host 2
Client
808080
Worker
4438443
![Page 6: The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks](https://reader036.fdocuments.in/reader036/viewer/2022070511/58a1698d1a28abc1708b691f/html5/thumbnails/6.jpg)
6
The good: Networking today
Docker host 1 Docker host 2
Client
80
Worker
443
Ethernet bridge on Docker host VXLAN tunnel between hosts Ethernet bridge on Docker host
![Page 7: The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks](https://reader036.fdocuments.in/reader036/viewer/2022070511/58a1698d1a28abc1708b691f/html5/thumbnails/7.jpg)
7
The good: DNS service discovery
DNS entries
10.0.0.1 www10.0.0.2 www10.1.0.1 svc x10.1.0.2 svc x10.1.0.3 svc x10.2.0.1 svc y10.2.0.2 svc y
www www
x x x
y y
www www
LB
Service X Service X
LB
Service Y
Service X
Service Y
Container network DNS auto-updatedwith container names
App view
![Page 8: The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks](https://reader036.fdocuments.in/reader036/viewer/2022070511/58a1698d1a28abc1708b691f/html5/thumbnails/8.jpg)
The bad: visibility
![Page 9: The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks](https://reader036.fdocuments.in/reader036/viewer/2022070511/58a1698d1a28abc1708b691f/html5/thumbnails/9.jpg)
9
Good: Docker app visualization…
![Page 10: The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks](https://reader036.fdocuments.in/reader036/viewer/2022070511/58a1698d1a28abc1708b691f/html5/thumbnails/10.jpg)
Good: …while retaining CLI access
![Page 11: The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks](https://reader036.fdocuments.in/reader036/viewer/2022070511/58a1698d1a28abc1708b691f/html5/thumbnails/11.jpg)
11
Ugly: Single point of failure
Consul 1 Consul 2 Consul 3
Host Host Host Host Host
![Page 12: The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks](https://reader036.fdocuments.in/reader036/viewer/2022070511/58a1698d1a28abc1708b691f/html5/thumbnails/12.jpg)
12
Good: No single point of failure
Host Host Host Host Host
Weave Net: router container per host with eventually consistent shared cache
![Page 13: The Good, the Bad and the Ugly of Networking for Microservices by Mathew Lodge, Weaveworks](https://reader036.fdocuments.in/reader036/viewer/2022070511/58a1698d1a28abc1708b691f/html5/thumbnails/13.jpg)
Thank you!