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

vdk-core: encapsulate router-specific properties logic #817

Merged
merged 2 commits into from
Apr 27, 2022

Conversation

ivakoleva
Copy link
Contributor

This MR attempts to simplify outer usages of PropertiesRouter,
in equivalent to IngesterRouter. The reason is IngesterRouter does
support multiple ingesters evaluated in a sequence, and PropertiesRouter
supports singleton properties back-end implementation yet.

PropertiesRouter interface surface no more exposes a singleton
implementation, instead implements the IProperties interface and
does the routing internally.
Also IngesterRouter already implements IIngester methods, so elaborated
the class definition on that explicitly, so it is effectively coupled
with the interfaces evolution.

Testing Done: ci/cd. No functional changes made, except interface
surface improvements and encapsulation.

Signed-off-by: ikoleva [email protected]

This MR attempts to simplify outer usages of PropertiesRouter,
in equivalent to IngesterRouter. The reason is IngesterRouter does
support multiple ingesters evaluated in a sequence, and PropertiesRouter
supports singleton properties back-end implementation yet.

PropertiesRouter interface surface no more exposes a singleton
implementation, instead implements the IProperties interface and
does the routing internally.
Also IngesterRouter already implements IIngester methods, so elaborated
the class definition on that explicitly, so it is effectively coupled
with the interfaces evolution.

Testing Done: ci/cd. No functional changes made, except interface
surface improvements and encapsulation.

Signed-off-by: ikoleva <[email protected]>
Copy link
Contributor

@doks5 doks5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This MR attempts to simplify outer usages of PropertiesRouter,
in equivalent to IngesterRouter. The reason is IngesterRouter does
support multiple ingesters evaluated in a sequence, and PropertiesRouter
supports singleton properties back-end implementation yet.

PropertiesRouter interface surface no more exposes a singleton
implementation, instead implements the IProperties interface and
does the routing internally.
Also IngesterRouter already implements IIngester methods, so elaborated
the class definition on that explicitly, so it is effectively coupled
with the interfaces evolution.

Testing Done: ci/cd. No functional changes made, except interface
surface improvements and encapsulation.

Signed-off-by: ikoleva <[email protected]>
@ivakoleva ivakoleva enabled auto-merge (squash) April 27, 2022 11:32
@ivakoleva ivakoleva merged commit 0f41d56 into main Apr 27, 2022
@ivakoleva ivakoleva deleted the person/ikoleva/properties-router-encapsulated branch April 27, 2022 14:37
@antoniivanov
Copy link
Collaborator

The change looks good to me.

But I am wondering what prompted the change now?

@ivakoleva
Copy link
Contributor Author

The change looks good to me.

But I am wondering what prompted the change now?

A prerequisite for multi properties client invocation support, like mentioned in the description,
see #819

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

Successfully merging this pull request may close these issues.

4 participants