Closed laurin closed 2 years ago
We should add some documentation to the readme.
@kinshukdua The tweets.txt
is not supposed to be persisted, right?
@laurin it is supposed to persist for a short while. I'm thinking of letting the tweets accumulate for a bit (say 30 minutes or an hour) and then be deleted. I'm currently handling this with a cronjob but the feature being part of the docker container would help a lot.
Ok, the problem is that the tweets will be appended to the existing files, so most of there are a lot of duplicates. If the 100 tweets max returned by the Twitter API are not enough we could retrieve multiple pages or properly store the tweets with an id.
You're right, we probably need to store the tweets with an id, to prevent duplicates. I think a database is an overkill for storing simple tweets. Instead lets just store the tweets with ids, text and link in a sorted order. Reading the file should barely take any time so we can just check the ids.
Try firebase, it's simple yet perfect for these solutions
I think we should take the discussion regarding the storage of tweets to another issue
Closes #7