There is no such thing as perfect programming, but we shouldn’t be discouraged because programming is a constant pursuit of perfection.

Service Registration:

How do client service instances register with Eureka Server? Eureka Server is registered by calling the Eureka Server REST API register method when the client service starts.

Service elimination:

How do you service culling? The DE-Register method of Eureka Server’s REST API is invoked under normal circumstances when the service is shut down through hook methods or other lifecycle callback methods. However, for abnormal shutdown, Eureka Server detects the renewal status of the client service lease through the heartbeat mechanism. If the client service is not renewed after a certain period of time, Eureka Server will actively remove the client service.