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
We have a similar feature, which is referred to as sunset in the documentation. Instead of constant time after last read it is number of seconds after paste is created.
after last read
I dislike this idea a lot. Currently, pb is able to have pastes cached by a proxy like a CDN or, currently, varnish. This significantly improves GET performance for the typical use-case: a paste is uploaded, then a bunch of different people look at it all at the ~same time.
The implementation details of after last read would not only require that no caching is performed, but every GET operation also involves a DB write to update some last-access metadata. This would significantly reduce pb performance.
As a result, I consider the feature request as written to be an anti-feature.
Also, the part where you actually delete something is also tricky. If this feature is intended as a capacity reduction technique, unlike sunset, where the paste isn't actually deleted until a GET request happens after the paste has expired, after last read would require some micro-service to constantly query for pastes that need purging.
It also means that the computational requirements of running pb scale linearly with the number of pastes that exists, whereas as of #172 computational requirements are ~constant in regardless of the number of pastes.
p.iotek.org has the nice feature of:
Could optional rules like these be implemented? I believe this is related to #62, unless that issue focuses on the deployment at ptpb.pw.
The text was updated successfully, but these errors were encountered: