Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-12218

Limit queue size

    XMLWordPrintableJSON

Details

    Description

      Currently users can add an indefinite number of replications to the queue. This is problematic as the end to end latency increases with the queue size. 

      So it makes sense to have a limit on the queue size.

      If the limit is reached we should:

      • Block for a certain time to wait for the queue size to become smaller
      • Fail after the timeout with an exception ( in case of http call we could fail with 429 or 503)

      Metric for queue size limit reached.

      As the changed behaviour might break user code we should make the limiting behaviour opt in via a PublisherConfiguration.

      Attachments

        Activity

          People

            cschneider Christian Schneider
            cschneider Christian Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: