I have an Eureka server running on a local machine. Eureka clients are registered on this server. I can view the eureka dashboard to view registered instances.
Is it possible to start the server side event listener, which will be launched when the instances are registered or canceled?
I looked at the source code and realized that eureka sends the next 3 events from ApplicationContext springs
EurekaInstanceRenewedEventEurekaInstanceRegisteredEventEurekaInstanceCancelledEvent
Of these, only EurekaInstanceRenewedEvent , and the listener starts when the server receives a heartbeat. I can not listen to other events when a new instance is registered or canceled from eureka.
Any help would be appreciated.
source share