I am building a simple bot. The bot scrapes an RSS feed.
The only persistence I need is the date time of the most recent item on the RSS feed.
I dont want to have to spin up a DB.<p>What would be great is a service that allows something like the following
simple-storge.com/account-id?data=the-date-i-want-to-store<p>Anyone know of anything like this that exists?<p>Any help greatly appreciated.
How durable do you need it to be?<p>A small go service writing to a sqlite db would be pretty easy (and probably pretty performant) but needs streaming replication to improve robustness/durability. For that see:<p><a href="https://litestream.io/" rel="nofollow">https://litestream.io/</a> and <a href="https://mtlynch.io/litestream/" rel="nofollow">https://mtlynch.io/litestream/</a> (an example) Edit: I just re-read the mylynch.io post and it probably has all the code you need.<p>Probably could run it on the fly.io free tier + S3/B2 storage costs.
> I am building a simple bot. The bot scrapes an RSS feed. The only persistence I need is the date time of the most recent item on the RSS feed. I dont want to have to spin up a DB.<p>So, open a local file, overwriting any old contents, and write out the date and time of the most recent item retrieved when done.<p>Then, before starting the next fetch, open the file and read in the saved date/time to use to determine which new items to fetch.