[ 
https://issues.apache.org/jira/browse/OAK-8552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16916482#comment-16916482
 ] 

Ian Boston commented on OAK-8552:
---------------------------------

I have not digested all the details, but IMHO, the Oak NodeStore 
(SegmentNodeStore or DocumentNodeStore) should be the record of authority for 
blob existence, length, lastModified, blobID, such that to answer any question 
about a binary, only the NodeStore should have to be consulted, and no network 
API calls made.  Only when a process actively needs to validate the date in 
NodeStore or interact directly with the binaries (upload, download, streaming) 
should it be forced to make network API calls to the blob storage API.

IIUC there are edge cases highlight by Alex that abuse this principal (async 
upload?), but in general the principal holds. Also IIUC to make the Oak 
NodeStore the record of authority might require some additional properties to 
be stored (existence flag, length?, lastModified ?, etc?)

Sorry if I have oversimplified.

> Minimize network calls required when creating a direct download URI
> -------------------------------------------------------------------
>
>                 Key: OAK-8552
>                 URL: https://issues.apache.org/jira/browse/OAK-8552
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: blob-cloud, blob-cloud-azure
>            Reporter: Matt Ryan
>            Assignee: Matt Ryan
>            Priority: Major
>         Attachments: OAK-8552_ApiChange.patch
>
>
> We need to isolate and try to optimize network calls required to create a 
> direct download URI.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to