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

[1.x] Replace Client::load_group with Client::resume_group #218

Open
Tracked by #211
tomleavy opened this issue Nov 20, 2024 · 0 comments
Open
Tracked by #211

[1.x] Replace Client::load_group with Client::resume_group #218

tomleavy opened this issue Nov 20, 2024 · 0 comments

Comments

@tomleavy
Copy link
Contributor

Background

Part of #211

Before (0.x)

// Make a group state store that conforms to the GroupStateStorage trait
let group_state_store = MyGroupStateStore::new();

let client = Client::builder()
    .group_state_storage(group_state_store) // Transfer the ownership of the group state storage
    ....
    .build();
        
let group = client.load_group(b"foo").unwrap();

In the above, load_group first calls GroupStateStorage::state to load the group state matching group id "foo".

After (1.x)

Resume Group API

Instead of calling the storage interface internally, the resume_group function will take a pre-loaded GroupState that was previously recorded by calling Group::export_state_update as described in #212.

Calling resume_group does not load any prior epoch data. Data from prior epochs will be provided if necessary as part of processing an inbound message.

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