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.

Add client notifications of changed values

See original GitHub issue

It would be nice to register a callback or listener when a config change is made upon reload/refresh. This way the application doesn’t have to poll the config, the config effectively broadcasts changes asynchronously, in “real-time”.

Although I am particularly interested in the Consul config integration, I think this would be an amazing-to-have for all config providers.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

mathwizardcommented, Nov 11, 2015

Hi @norbertpotocki, I don’t think that the notification has to be immediate. Ideally it should be bound to the ReloadStrategy. When new set of properties is loaded, do a diff and see what has changed.

The callback could be ideally handled with a annotation @PropertyChangedListener({“”, “db.port”}) placed on methods that should run upon property change.

saeidrastakcommented, Apr 9, 2017

This Link can introduce this feature in more detail:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Provide notification of dynamic changes to content
Make users aware of important changes in content.​​ Change focus only when an alert is critical to the user's current activity. Otherwise, don't...
Read more >
Notify to the client that a variable has changed - Google Groups
I'm trying to develop a simple tutorial projects, made of both client and server. ... like the client be notified every time the...
Read more >
Changing a client's notification settings - WellnessLiving
To change the notification settings for a specific client:​​ , and enter the client's information in the box. You can enter the client's...
Read more >
Send/Receive DataChange Notifications when value changes ...
Hi, i pulled the current master of open62541 and tried to create a client that subscribes to data changes of a variable value...
Read more >
How to: Implement Property Change Notification - WPF .NET ...
To implement INotifyPropertyChanged you need to declare the PropertyChanged event and create the OnPropertyChanged method. Then for each ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found