AO-StreetArt / CrazyIvan

A Service for tracking relationships between different coordinate systems for use in graphics programming
Other
2 stars 1 forks source link

Remove Consul Startup Dependency #77

Closed AO-StreetArt closed 6 years ago

AO-StreetArt commented 6 years ago

Consul is the last startup dependency. Here's the pattern of what we should do when instructed to configure from consul:

Try to register with Consul. If we succeed, continue configuration and retrieve values
If we fail to register, we should
a. open the ZMQ socket,
b. serve only failure responses
c. schedule recurring attempts to configure on a background thread.
AO-StreetArt commented 6 years ago

If we aren't registered, it doesn't make sense to open the socket yet. So, we just skip to step c