Disclosure: When you purchase a service or a product through our links, we sometimes earn a commission. Read More..

FREE Email Marketing Course

Broadcast a message to all container replicas

October 10, 2019 By admin

Software https://softwareengineering.stackexchange.com/questions/387576/broadcast-a-message-to-all-container-replicas

I have two services, one of which generates resources on disc for another one to read and procedure. The tools will be subject to irregular shift, which I’d like to inform the customer service when a source rescue the record timestamps and is updated instead of polling or restarting providers.

Problem is, I plan to replicate the customers. With Docker you can compose a set of replicate and solutions specific solutions for redundancy or performance. But, these replicas are supporting a address to the external world and a load balancer determines where to maneuver a particular request. For my usage, each replica would have to get informed once a source is upgraded so it could consequently remain up to date. First loading and processing is expensive so reloading is a option that is poor.

Can there be a method, in Docker, to broadcast or replicate a petition to each of containers of one type? Or simply to every container?


It really will be a non-issue if it weren’t for the masking load balancer… Apparently you can define a community endpoint_mode as dsnrr to find access to your listing of container speeches, but using it is for my knowledge involve really copying the balancer, and it is less than perfect for this restricted case.