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

Support consul's watch feature #3

Open
dysinger opened this issue Mar 18, 2015 · 3 comments
Open

Support consul's watch feature #3

dysinger opened this issue Mar 18, 2015 · 3 comments

Comments

@dysinger
Copy link

When you watch something on Consul, it's a blocking HTTP request. Right now I'm passing in a managersettings to initializeConsulClient that disables the timeout when I want to watch things. This means I have to use two different consul clients & juggle them (because I don't want the no-timeout client used for non-watch requests.) Ideally I would manage my own manager & I could modify the request to never timeout if I wanted to watch data for changes on that one HTTP request.

Related to #2

Both #2 and #3 are blocking issue #1 IMHO

@dysinger dysinger changed the title Add the ability to pass modify request settings (like timeout) Support consul's watch feature Mar 18, 2015
@sseveran
Copy link
Member

@dysinger is this something you are interested in working on? I don't use watches currently and am unlikely to have time to implement them in the near term.

@dysinger
Copy link
Author

@sseveran I think this is solved by #4 (the only difference with watch is that you getKey with an index without timing out the HTTP request).

@sseveran
Copy link
Member

I think the larger issue is what is the best way to design the API on the haskell side. Any query can be made blocking but setting its timeout to Nothing. As I understand it the handler is a script/executable that can be called by the consul agent for each event. It might be possible to use rpc of some sort to get those messages back into an applications. What are your thoughts?

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

No branches or pull requests

2 participants