You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Christian Schneider (Jira)" <ji...@apache.org> on 2024/01/03 14:38:00 UTC
[jira] [Created] (SLING-12218) Limit queue size
Christian Schneider created SLING-12218:
-------------------------------------------
Summary: Limit queue size
Key: SLING-12218
URL: https://issues.apache.org/jira/browse/SLING-12218
Project: Sling
Issue Type: Improvement
Components: Content Distribution
Reporter: Christian Schneider
Assignee: Christian Schneider
Fix For: Content Distribution Journal Core 0.3.0
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)