I built my own Tweet scheduler which costs less than 1$ per month

I wanted a simple scheduler that will post tweets from my Notion database to Twitter.

I wanted an app without any bells & whistles, just a dumb scheduler. I did not want to pay 10$/mo just for that. So as any developer would do, I decided to writ…

I wanted a simple scheduler that will post tweets from my Notion database to Twitter.

I wanted an app without any bells & whistles, just a dumb scheduler. I did not want to pay 10$/mo just for that. So as any developer would do, I decided to write my own scheduler 😂.

Here’s how I did it.

I wrote a script tweeter.js which does the following

  • Fetch content from a Notion database.
  • Prepare the tweet
  • Send it to Twitter based on the scheduled time slot
  • Mark the tweet as posted in Notion.

I have hosted the scheduler in AWS and it runs as a container in ECS.

I use Amazon EventBridge rule to create a new container every 30 minutes. This container when started executes tweeter.js and terminates. This way, I don’t have a server running all the time, which in turn results in reduced costs.

It costs less than 1$ a month and I can schedule as many tweets/threads I want.

One caveat is that the tweets schedule time is not accurate to the specific minute. It depends on the frequency at which a new container is created. I have set it to 30 minutes, so if you schedule a tweet between 10:00 & 10:30 all of them would be tweeted at the same time.

References

ECS infrastructure setup – https://github.com/vthub/scheduled-ecs-task


Print Share Comment Cite Upload Translate
APA
Dinesh S | Sciencx (2024-03-28T22:32:28+00:00) » I built my own Tweet scheduler which costs less than 1$ per month. Retrieved from https://www.scien.cx/2022/10/29/i-built-my-own-tweet-scheduler-which-costs-less-than-1-per-month/.
MLA
" » I built my own Tweet scheduler which costs less than 1$ per month." Dinesh S | Sciencx - Saturday October 29, 2022, https://www.scien.cx/2022/10/29/i-built-my-own-tweet-scheduler-which-costs-less-than-1-per-month/
HARVARD
Dinesh S | Sciencx Saturday October 29, 2022 » I built my own Tweet scheduler which costs less than 1$ per month., viewed 2024-03-28T22:32:28+00:00,<https://www.scien.cx/2022/10/29/i-built-my-own-tweet-scheduler-which-costs-less-than-1-per-month/>
VANCOUVER
Dinesh S | Sciencx - » I built my own Tweet scheduler which costs less than 1$ per month. [Internet]. [Accessed 2024-03-28T22:32:28+00:00]. Available from: https://www.scien.cx/2022/10/29/i-built-my-own-tweet-scheduler-which-costs-less-than-1-per-month/
CHICAGO
" » I built my own Tweet scheduler which costs less than 1$ per month." Dinesh S | Sciencx - Accessed 2024-03-28T22:32:28+00:00. https://www.scien.cx/2022/10/29/i-built-my-own-tweet-scheduler-which-costs-less-than-1-per-month/
IEEE
" » I built my own Tweet scheduler which costs less than 1$ per month." Dinesh S | Sciencx [Online]. Available: https://www.scien.cx/2022/10/29/i-built-my-own-tweet-scheduler-which-costs-less-than-1-per-month/. [Accessed: 2024-03-28T22:32:28+00:00]
rf:citation
» I built my own Tweet scheduler which costs less than 1$ per month | Dinesh S | Sciencx | https://www.scien.cx/2022/10/29/i-built-my-own-tweet-scheduler-which-costs-less-than-1-per-month/ | 2024-03-28T22:32:28+00:00
https://github.com/addpipe/simple-recorderjs-demo