sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashish Chopra (Jira)" <>
Subject [jira] [Created] (SLING-8994) Optimize session saves for Single Queue Dispatching Strategy
Date Tue, 14 Jan 2020 04:07:00 GMT
Ashish Chopra created SLING-8994:

             Summary: Optimize session saves for Single Queue Dispatching Strategy
                 Key: SLING-8994
             Project: Sling
          Issue Type: Bug
          Components: Content Distribution
            Reporter: Ashish Chopra
             Fix For: Content Distribution Core 0.4.2

Separation of concerns dictate that there's a loose coupling between Distribution Packages
and Queue entries, and thus the distribution-packages and queue-items are persisted in different
sessions (indeed, depending on queue-impl/distribution-packaging-impl chosen there may not
be a need to persist either, or any of them at all).

To enable collection of unreferenced Distribution packages, currently, queue items are be
acquired [0] and released [1] on a per-queue basis in {{MultipleQueueDispatchingStrategy}}.
Only the distribution-packages that don't have any live references are claimed.

For a 1:1 distribution (as {{SingleQueueDispatchingStrategy}} [2] aims to achieve), acquring
and releasing packages is superfluous (since there's only one queue) and as such it should
just be sufficient to mark the package 'released' [3] once the queue is done with it.
However, the ref-updates still happen given way it is implemented currently (as a subclass
of {{MultipleQueueDispatchingStrategy}} that doesn't override anything [2]).

Opening this issue propose improving {{SingleQueueDispatchingStrategy}} impl. This should
slightly optimize the book-keeping and marginally reduce the write-overhead for 1:1 distribution.


This message was sent by Atlassian Jira

View raw message