[
https://issues.apache.org/jira/browse/SLING-5991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15728852#comment-15728852
]
Tommaso Teofili commented on SLING-5991:
----------------------------------------
[~marett], I had an offline discussion with [~simone.tripodi] and these are our
conclusions so far:
1. we need the package persisted afterwards (during queue processing)
2. we directly stream the outputstream to file in
{{FileDistributionPackageBuilder}} therefore that should be fine IIUTC
3. the {{ResourceDistributionPackageBuilder}} writes the outputstream to
{{FileBackedMemoryOutputStream}} (memory and / or file) because there's no
proper Sling / JCR API that wraps an {{OutputStream}} and we can make us of, at
least AFAIK (I had found JCR-2235 but that has never been implemented)
Did I / we get this right ?
Would you have any suggestions ?
> [SCD] Evaluate avoiding to buffer the whole packages before streaming
> ---------------------------------------------------------------------
>
> Key: SLING-5991
> URL: https://issues.apache.org/jira/browse/SLING-5991
> Project: Sling
> Issue Type: Improvement
> Components: Distribution
> Affects Versions: Content Distribution 0.2.0
> Reporter: Timothee Maret
> Assignee: Tommaso Teofili
> Fix For: Content Distribution 0.2.0
>
>
> As described in SLING-5990, It seems streaming only starts when the whole
> binary is completely buffered (in memory and/or file). The buffering time
> implies a latency which which could be avoided by streaming directly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)