How do you give containers stable identity and discovery without Kubernetes?
AdvancedProductionArchitecture & Design Decisions
Answer
Within a host: user-defined network DNS and aliases. Across hosts: Swarm overlay with VIPs, Consul + registrator/Traefik file provider, or a cloud load balancer in front of each service. Avoid hardcoding IPs. Add healthchecks so the discovery layer removes dead instances.
More on Architecture & Design Decisions
How would you design a container build-and-deploy pipeline from commit to production?AdvancedWhen should you use Docker Compose, Swarm, ECS, or Kubernetes?IntermediateHow do you decide how many processes belong in one container?BeginnerHow do you design the config strategy for containerized apps (12-factor)?IntermediateHow would you containerize a legacy app that writes to local disk and holds sessions in memory?AdvancedAlpine or Debian-slim for a Python service?Intermediate