Expiring entries #8

Open
opened 2023-05-27 18:34:30 +02:00 by Jef Roosens · 0 comments

Automatically removing an entry after a period of time could be useful, e.g. if we know the entry won't be useful or relevant anymore after a certain date.

The expiry time can be sent as an X-Lander header as a Unix epoch, and the CLI tool can parse more human-friendly formats where needed.

In terms of implementing the actual removal, I currently see two main ways to deal with this:

  • Remove an entry the moment it's being requested after it has expired. This has the advantage of not having to implement any sort of background work, but it could let entries stay on disk for much longer than intended.
  • Implement a background worker thread that takes care of this work. This would fix the above issue, but it would introduce a new level of complexity.
Automatically removing an entry after a period of time could be useful, e.g. if we know the entry won't be useful or relevant anymore after a certain date. The expiry time can be sent as an `X-Lander` header as a Unix epoch, and the CLI tool can parse more human-friendly formats where needed. In terms of implementing the actual removal, I currently see two main ways to deal with this: * Remove an entry the moment it's being requested after it has expired. This has the advantage of not having to implement any sort of background work, but it could let entries stay on disk for much longer than intended. * Implement a background worker thread that takes care of this work. This would fix the above issue, but it would introduce a new level of complexity.
Jef Roosens added a new dependency 2023-05-31 20:35:10 +02:00
Jef Roosens added the
Kind/Feature
label 2023-11-16 17:59:35 +01:00
Jef Roosens changed title from Automatically expire entries to Expiring entries 2023-11-16 17:59:44 +01:00
Jef Roosens added the
Project/Lander
label 2024-08-26 10:42:18 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Depends on
#7 Ability to remove entries
Chewing_Bever/lander
Reference: Chewing_Bever/lander#8
There is no content yet.