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

Dynamic routing take 1 #12

Open
tailhook opened this issue May 26, 2017 · 3 comments
Open

Dynamic routing take 1 #12

tailhook opened this issue May 26, 2017 · 3 comments

Comments

@tailhook
Copy link
Collaborator

tailhook commented May 26, 2017

As the step one we just fetch addresses from external source:

http-destinations:
  my-application:
    addresses: !JsonRequest verwalter/v1/schedule?key=data.roles.my-application.all_backends
  verwalter:
    addresses:
    - localhost:8379

More comprehensive settings might look like:

htttp-destinations:
  my-application:
    addresses: !JsonRequest
      destination: verwalter/v1/schedule
      query-string: "key=data.roles.my-application.all_backends"
      refresh-interval: 10 seconds

Technically, as we support changing addresses on the fly anyway this should be relatively easy to implement.

/cc @popravich

@popravich
Copy link
Collaborator

Probably destintation: verwalter/.... would look more consistent than url:.

@tailhook
Copy link
Collaborator Author

Updated

@tailhook
Copy link
Collaborator Author

Well, after some thinking, I don't want any special tags on addresses:, I think we should implement configurable name service, with some .verwalter suffix resolved via verwalter's API.

Keeping this issue open, until issue on name resolution is created.

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