Service Discovery in nodejs
summary
Describes a Node.js service-discovery setup using Docker Swarm where per-host registrars read Docker and push container IP:port pairs into a distributed store (etcd/consul/zookeeper). Presents a pipeline where a Node.js client-side cache with random load balancing keeps local service maps and subscribes to store updates to achieve scaling and failover across two hosts; notes Docker 1.9 overlay networking eliminates external round trips.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 3:59Docker Compose basics
- 9:27Docker links limitations
- 11:57Tenga center pattern
- 15:35Service directory requirements
- 17:00Service registry tools
- 18:47Service registration approaches
- 20:16Registrator demo
- 23:32Local cache client
- 24:37Demo setup
- 26:05Scaling with multiple hosts
- 28:34High availability demo
- 28:55Docker 1.9 overlay networking
- 31:05Summary & Q&A
