Limit potential size of unacknowledged priority queues for subscriptions
edw opened this issue · comments
Currently subscriptions accumulate unacknowledged messages without bound. Some facility for limiting the number of unacknowledged messages a subscription can contain should be added. Ideally, there should be a way to specify a strategy for dealing with overflow conditions e.g. dropping newest, dropping oldest, etc.
Dropping newest would be cheaper, as the queue can simply lie dormant once it is of a certain size, though this is not necessarily the most useful approach for any given user.
Addressed in master at https://git.sr.ht/~edwin/pubsubd.