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 static topology #1

Merged
merged 2 commits into from
Apr 10, 2023
Merged

Support static topology #1

merged 2 commits into from
Apr 10, 2023

Conversation

the-flagship
Copy link
Contributor

This PR introduces a StaticNodeRegistry which is an alternative content node registry implementation to the existing and now-renamed DynamicNodeRegistry. The static version is simply configured with a list of content nodes at init time, whereas the dynamic version queries topology nodes for this information.

The service worker still has support for both models. Which one gets used is based on the presence of certain environment variables.

This also renames NodeRegistryImpl to DynamicNodeRegistry. The new
static version isn't being used just yet.
This allows StaticNodeRegistry to be used by setting the CONTENT_NODES
environment variable as opposed to BOOTSTRAP_NODES, which will still use
DynamicNodeRegistry if set.
@the-flagship the-flagship merged commit 484cc01 into main Apr 10, 2023
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

Successfully merging this pull request may close these issues.

2 participants