question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide a way to listen to specific services instead of the whole catalog

See original GitHub issue

spring-cloud-consul provides a Consul Catalog Watch that publishes heartbeat events on catalog changes. In an environment with many services the catalog can change rapidly (multiple times per second) causing heartbeat events to trigger for services which the application is not interested in.

For example, this mechanism is used in Spring Cloud Config Client if discovery is enabled link

In practice the config client is only interested in updates to the spring-cloud-config-server but this triggers each time the catalog updates.

The catalog services watch can already be disabled. It would be very useful if an alternative heartbeat event producer can be implemented which takes a list of relevant services and only publishes heartbeat events when those specific services are updated.

Currently any micro service in our organization will start generating many requests to consul just by adding spring-cloud-starter-consul-discovery. While the watch-delay is configurable it’s less than ideal if your application is only interested in a subset of services. If the watch-delay is too high you risk not getting an immediate update when the services changes and if it’s too low you get flooded with events.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
spencergibbcommented, Jun 13, 2019

I think that is a rarity. As you mentioned, you can disable it and roll your own. We’ll wait to see if there are more folks who want this.

0reactions
rutulscommented, Mar 5, 2021

I need to implement the scenario in service1 where I want to know health of service2 and if it is up/running then will take action accordingly. I want to know the health of a service on a separate thread or basically in a non-blocking way. How do I implement it using catalog watch ? Is there any other way to implement as well ? Are there any examples available ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best Music Streaming Services - Consumer Reports
The best music streaming services have mostly indistinguishable libraries of songs, a lot of the same features, and a price of around $10 ......
Read more >
The Best Music Streaming Services to Get Your Groove On
There's no way to view or make playlists, and you ca't save favorite songs, artists, or albums. That also means no music videos...
Read more >
The Essential Guide to Creating an IT Service Catalog - Blog
An IT service catalog is an invaluable tool to optimize the relationship between end-users and the IT team. Here's the ultimate guide for ......
Read more >
Apple Music
Stream millions of songs in lossless audio at no extra cost. Download your favorites and play them offline. Start listening for free today....
Read more >
How to use YouTube Music
How to use YouTube Music, the main features of the service including playlists, casting to smart speakers, uploading songs to the library, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found