Automatically delete documents if they weren't in use for x time
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6.5k
- Forks
- 456
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 5
Description
Hello, I'm currently using ShareDB for a collaborative editor. However the documents do not need to be persistent, so I am only keeping them in memory. However when they are no longer in use (for example when nobody was subscribed for 10 minutes), I want to delete them automatically. I couldn't find a good way to do this with the Server API, can anyone else here help me?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ShareDB Server API and the document subscription lifecycle described in the issue. Determine how inactivity is observed and define the behavior for deleting in-memory documents after a configurable period with no subscribers; the issue provides no file or test entry point.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend, database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100