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

Logically group supported schemas by application #565

Open
sandreae opened this issue Sep 18, 2023 · 0 comments
Open

Logically group supported schemas by application #565

sandreae opened this issue Sep 18, 2023 · 0 comments

Comments

@sandreae
Copy link
Member

sandreae commented Sep 18, 2023

At some point we may want to organise supported schemas into groups depending on the application they are required for. This could then be use to configure replication behaviour in a more fine grained, per-application manner. This would have an impact on on Announce, TargetSet composition and sync session establishment, our configuration flow.

For example, a fantasy config file would look like:

[[applications]]
name = "My mushroom app" # A name I give the application
schema_ids = ["sighting_0020...", "species_0020..."]
storage_allowance = 20 # MB storage allowance

[[applications]]
name = "My video sharing app"
id = ["huge_video_file_0020...", "favorite_videos_0020..."]
storage_allowance = 10000

This config would result in the node producing 2 Announce messages, and starting separate sync sessions for each set of application schema. Whether blob_v1 and blob_piece_v1 were included in each announce/target set would be different for each application and depend on their individually configured storage allowance.

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

1 participant