Skip to content

Stream GetNetworkAccountIds response #1478

@SantiagoPittella

Description

@SantiagoPittella

As Mirko suggested in #1452 , we can try to stream the response of the mentioned method.

I would also be interested in an experiment where we change the proto to return a stream of AccountId instead. Internally, the store would manage the stream by paginating internally (which no longer needs to be block bound, but can use rowid or any other internally consistent row token). e.g. request a page from db, stream the page, request next page, stream it etc.

Client can recover from a broken stream by initializing stream with Option<AccountId>, the last account ID received. Though we could also just restart from scratch since its an internal only API.

Originally posted by @Mirko-von-Leipzig in #1452 (review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    network transactionsRelates to the network transactions featurestoreRelated to the store component

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions