Broadcast a message to all container replicasOctober 10, 2019
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
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.