This service is intended to be ran across a fleet of servers (bare metal or virtualized) to keep configuration files up to date. The clients connect to a centralized server who's implementation is out of scope for this assignment.
Your client should initiate a server-side streaming Watch
request that will emit events on source updates. It's up to the client to consume this event stream and keep the requested files up to date. After connecting and making the watch request, OpSync
will be the first message received. Additionally, the OpSync
event may be received at any point in the stream for various upstream reasons. OpUpdate
and OpRemove
are called when files must be updated or removed from the destination system.
Resources: