You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retention policies can be set based on size or time limit (or both), while backlog quotas can only be based on size. The recommendations I've gotten are to set backlog quota to be equal to or less than the retention policy, but if the retention policy is based solely on time, the backlog quota cannot be certain to be less than the retention policy.
There's no backpressure policy applied to TTL though, unless I missed something. Even if I'm combining them, there's no way for me to ensure that backlog is less than TTL.
It still feels inconsistent. With TTL there is no good backpressure strategy, and I am then still stuck with trying to guess whether or not backlog-quota fits into TTL time or not, since it is only measured in bytes.
This would also then require me to use retention, TTL and backlog quota, and the docs seem to indicate that this is unusual.
Put another way: if retention period can be set only with time, and if backlog quota is supposed to be equal to or less than retention, then backlog quota should also support being set with only time, otherwise there is no way to know that backlog quota is equal to or less than retention period.
Yes, the TTL can't achieve the backpressure strategy by the time duration. Thanks for the clarification, I think this should be a new feature, so I will change the label to type/feature.
Activity
codelipenghui commentedon Mar 2, 2021
@flowchartsman You can use the message TTL to expire the backlogs of the subscription.
flowchartsman commentedon Mar 2, 2021
There's no backpressure policy applied to TTL though, unless I missed something. Even if I'm combining them, there's no way for me to ensure that backlog is less than TTL.
codelipenghui commentedon Mar 3, 2021
Yes, it needs to combine them to achieve the purpose.
flowchartsman commentedon Mar 4, 2021
It still feels inconsistent. With TTL there is no good backpressure strategy, and I am then still stuck with trying to guess whether or not backlog-quota fits into TTL time or not, since it is only measured in bytes.
This would also then require me to use retention, TTL and backlog quota, and the docs seem to indicate that this is unusual.
Put another way: if retention period can be set only with time, and if backlog quota is supposed to be equal to or less than retention, then backlog quota should also support being set with only time, otherwise there is no way to know that backlog quota is equal to or less than retention period.
codelipenghui commentedon Mar 5, 2021
Yes, the TTL can't achieve the backpressure strategy by the time duration. Thanks for the clarification, I think this should be a new feature, so I will change the label to
type/feature.MarvinCai commentedon Mar 20, 2021
I'll try to add this feature.
[Broker] Add time based backlog quota (#10093)