millette / got-weed

npx got-weed fr
GNU Affero General Public License v3.0
5 stars 2 forks source link

Store historical data #6

Open millette opened 5 years ago

millette commented 5 years ago

Pluggable backend? I like couchdb, leveldb is also an option, or straight json files stored on the filesystem.

samuelwang48 commented 5 years ago

My personal preference would be - Stateless first.

Maintain a store is definitely big amount of work. This could be solved If we are to use some public cloud services(dump in s3 bucket or other nosql DBs) based on donated fund.

If the state is persisted on cloud, this also implies we might need a server to stash the API keys.

Or we don't need an app server but we still need to make sure a scheduled job is running on any server to archive the data dump.

samuelwang48 commented 5 years ago

Just saw #7. Makes sense now.

millette commented 5 years ago

We can have the history in a separate layer and keep this cli simpler, I agree.

I'm regurgigating a bunch of ideas instead of keeping it all just in my head. Hope it's not too noisy ;-)

samuelwang48 commented 5 years ago

No not at all. That's brainstorming. We will groom those issues later for sure.