Our great sponsors
-
consul
Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Since all of your apps are in the same environment, one possibility is to use a service registry like Consul or etcd. As a container comes up it registers itself by making a REST call to declare “I’m the Rabbit server!”. Then other apps call out to etcd with a REST query to ask “Where’s the Rabbit server?” and get the name of the Rabbit container. If you decide to start playing with HA or clustering, this can be extended so the service registry returns the name of the current primary node, or spreads traffic across multiple nodes by returning different responses based on rules you set up.
Since all of your apps are in the same environment, one possibility is to use a service registry like Consul or etcd. As a container comes up it registers itself by making a REST call to declare “I’m the Rabbit server!”. Then other apps call out to etcd with a REST query to ask “Where’s the Rabbit server?” and get the name of the Rabbit container. If you decide to start playing with HA or clustering, this can be extended so the service registry returns the name of the current primary node, or spreads traffic across multiple nodes by returning different responses based on rules you set up.