How to keep track of the services registered in SOA service registry & discovery RRS feed

  • Question

  •  have been working on the SOA POC since last few days. For service discovery & registry, we are considering Consul. Once we have registered the services in consul, how we should keep track of running status of the registered services? We are implementing things on .net platform where some wcf services are hosted on the different appdomains, some in separate console process. We can keep track of the services in two ways.

    1. Listening the ports using socket connection with heartbeats .
    2. Handling the appdomain unload & console exit events.

    A. Is there any other way to handle this scenario?

    B. How we can get notification when console application process gets terminated ? procss might be killed,closed etc. How we can gracefully remove the service registry entry from Consul central repository?

    C. Listening all the ports with certain heartbeat is efficient way as it will keep threads busy all the times?

    Any help is most appreciated?

    Wednesday, December 2, 2015 1:32 PM


All replies