Reputation: 63
I would like to ask, is it a good technique to use the IP address for communication between containers? I found about ambassador pattern and linking, but nothing about container's IP.
Is there any reason?
Thanks
Upvotes: 2
Views: 32
Reputation: 3676
No. It makes moving services difficult, and means that if you need to make a small change in one section, you may need to reboot entirely unrelated sections of your infrastructure.
The ambassador pattern is designed to try and make your infrastructure more portable and stable. This is a core containerization principle.
Upvotes: 1