I am midway through my software development project in Node.js and have encountered a fork in the road. I need to create a "database" or JSON file, etc, that will automatically delete an entry after it has been in for X amount of seconds. An entry is simply just a random string.
Should I use JSON and write an asynchronous function that runs in the background? Should I use some kind of light database?