Saturday, 14 September 2019

Most efficient way to dynamically schedule functions?

I am trying to determine the most efficient way to create a "tweet scheduler" (yes i know twitter does this, sake of argument). So assuming you have some form of database full of messages and dates to post those messages, let's assume they contain the payload and then call a posting function at the time specified in the database. The service is an API to which you can post these messages and schedule them. Maybe it can do some other things as well. The best I can come up with for actually posting the messages is to have a second service that runs every minute and checks to see if there are any messages that should be posted. This seems the simplest but I would love if I could come up with a more efficient method, maybe a way to do this entirely in a serverless environment. Any thoughts?

Submitted September 15, 2019 at 02:27AM by Ampix0

No comments:

Post a Comment