Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clent Event listener from eureka server. #1027

Closed
ex00 opened this issue Jan 15, 2018 · 4 comments
Closed

Clent Event listener from eureka server. #1027

ex00 opened this issue Jan 15, 2018 · 4 comments
Labels

Comments

@ex00
Copy link

ex00 commented Jan 15, 2018

Hi.
I have issue:
On eureka client site I have logic is related with some services. This logic have same actions for different services - get url to service from eureka and call rest endpoint a service.

And I would want to know about other new connected service to eureka server via events is coming from server. Is it possible?

@qiangdavidliu
Copy link
Contributor

Hi @ex00 the java eureka client provides an event interface eurekaClient.registerEventListener that allows you to listen to eureka update events. Under the hood, the client/server communication is still poll based however.

@ex00
Copy link
Author

ex00 commented Feb 2, 2018

Hi @qiangdavidliu
Thanks for you reply! Do you talk about EurekaEvent?
I woluld like register listener for events about register new application in server. Wich implementation of EurekaEvent I could use for it?

@qiangdavidliu
Copy link
Contributor

Hi, you might want to take a look at CacheRefreshedEvent, which is generated each time the client receives an update. If you want to look into specifics however, you'll have to implement that logic when the event is triggered.

@ex00
Copy link
Author

ex00 commented Feb 16, 2018

I changed logic of my application and this issue is not actual already. Thaks for help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants