title: What's the best solution to execute scheduled tasks for later?
body: <p>This is not really a code related question, but more of a solutions oriented question.</p>
  <p>To provide some context, I have a web application with a serverless Node.js backend which lets users define a recurring time period at which an endpoint will execute and perform some action. For example, a user decides that every 9 days, the action will be fired.</p>
  <p>I am well aware of solutions such as <strong>GCP Cloud Tasks</strong> (which is what I'm currently using) and <strong>AWS SQS</strong>, but they have limits. For instance, GCP's Cloud Tasks has a max schedule limit of 720 hours (30 days). This means that my users can only schedule tasks at a future date within 720 hours in the future whereas I would prefer to give them the flexibility to schedule tasks for up to one year.</p>
  <p>Is there currently a cloud solution that would allow me to perform such a feature?</p>
  <p>I am suspecting that this is definitely possible because of Stripe's subscriptions. They allow yearly subscriptions, which are similar to what I'm using, but with an extended limit. I'm not exactly sure how Stripe engineers accomplished this under the hood (while keeping scalability as a requirement since cronjobs are quite expensive), but after googling solutions to no avail, this problem had me wondering if there existed a more appropriate solution or whether my solution is fine as it is.</p>
  <p>I'm also aware that there are workarounds to &quot;extend&quot; the Cloud Task 720 hours limit, but I want to explore options before diving into those kind of workarounds. (e.g. Cronjobs for each user would work well but expensive at scale, One cronjob checking for all the current day's tasks to schedule but at scale, the cloud function might time out since I'm using serverless backend, etc.)</p>