TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Need a simple HTTP service that allows basic string persistence

3 点作者 roberja90将近 4 年前
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&#x2F;account-id?data=the-date-i-want-to-store<p>Anyone know of anything like this that exists?<p>Any help greatly appreciated.

2 条评论

vhodges将近 4 年前
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&#x2F;durability. For that see:<p><a href="https:&#x2F;&#x2F;litestream.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;litestream.io&#x2F;</a> and <a href="https:&#x2F;&#x2F;mtlynch.io&#x2F;litestream&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mtlynch.io&#x2F;litestream&#x2F;</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&#x2F;B2 storage costs.
评论 #27414368 未加载
pwg将近 4 年前
&gt; 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&#x2F;time to use to determine which new items to fetch.
评论 #27414378 未加载