News for hackers. Stuff that matters.
Re:Show HN: Your Twitter mentions and DMs in an email on a s... by soulchild37 on Sunday March 12, 2017 @11:56PM (#13855117)
Great idea! I am curious how you are able to sustain the server fees by just charging one off fees.

My thought is that your server have to continuously check for tweets from user timeline and send any mentions to their email everyday / 2-day/ week. There is a daily cost for each user and it will only increase as more user uses your service.

Re:Show HN: Your Twitter mentions and DMs in an email on a s... by benhowdle on Monday March 13, 2017 @05:45AM (#13856428)
You'd be wise to think that, but I actually use Heroku's "Scheduler" add-on, so they just fire up a one-off dyno once a day and run my script. This script just checks the database for the user's it needs to check (paying && valid email) and fires off Twitter API requests for them. If there's @mentions/DMs that fit in with the frequency the user has selected, the email is fired off through AWS SES. Honestly, the server costs for this will be quite low for quite some time. If it takes off big time, sure, I'll re-evaluate the pricing model.