HomeLearnArticleStitch Triggers Get Scheduled

Stitch Triggers Get Scheduled

Updated: Mar 15, 2022 |

Published: Apr 02, 2019

  • Realm
  • Releases

By DJ Walker

Rate this article

Please note: This article discusses Stitch. Stitch is now MongoDB Realm. All the same features and functionality, now with a new name. Learn more here. We will be updating this article in due course.

Stitch Triggers are powerful tools letting you run functions automatically when some change happens in your database or when a particular authentication event occurs. There is, though, another workflow where you may want to run functions automatically - at particular times of the day and regularly. This workflow applies to, for example, an evening consolidation run, an early morning validation, an afternoon report, or pulling fresh data regularly from an API. Now, a new breed of Stitch Trigger is answering that need. Say hello to the Scheduled Stitch Trigger.

The Scheduled Stitch Trigger can be set to trigger on a flexible interval across minutes, hours, days, or weeks. If you have more complex scheduling in mind, there's an advanced option that uses CRON-style syntax to give flexible yet precise repetition options.

When the trigger fires, it calls a serverless Stitch Function. Stitch Functions run in a MongoDB Atlas-aware context and let you seamlessly interact with MongoDB and other configured services. Functions are written in standard JavaScript and can run up to 60 seconds (with the ability to call services like AWS Lambda or Step Functions for longer runtimes). That's everything you need to work with your data and services.

And if you want to see how quick it is to set a scheduled trigger and function up, check out this video where we do just that:

Enjoy Stitch Scheduled Triggers today!

Rate this article
MongoDB logo
© 2021 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.