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

Status indication of a derived View #5

Open
pietercolpaert opened this issue Mar 15, 2021 · 1 comment
Open

Status indication of a derived View #5

pietercolpaert opened this issue Mar 15, 2021 · 1 comment

Comments

@pietercolpaert
Copy link
Member

pietercolpaert commented Mar 15, 2021

Status indication

When replicating a stream on your own system when, for example, building other tree:views on top of them with different fragmentations, you MAY track the progress of how much elements from the original stream are processed into your own system.

This should become possible using an ldes:elementsProcessed as follows:

<Collection> a ldes:EventStream ;
    hydra:totalItems 500 ;
    tree:view :View1 .
:View1 a tree:Node ;
    ldes:elementsProcessed 250 .
@julianrojas87
Copy link
Collaborator

julianrojas87 commented Mar 26, 2021

Given the immutable nature of a LDES it could end up with multiple predicates ldes:elementsProcessed 250, ldes:elementsProcessed 325, ... right?

Since it is transient metadata, perhaps consider adding it as part of a X-LDES-ElementsProcessed HTTP header for example?

In this way a client can just do a HEAD request to verify if a projection is already fully processed.

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

2 participants