Hi all,
Does anyone know what the difference in performance is between scheduling a backend API for current time, and having a trigger? Does having a trigger imply any extra work by the server, as it’s constantly ‘watching’ for its cue?
Say I want to trigger an email when a user completes their profile:
API Option
- User clicks ‘button complete’
- Make change to current user: Profile Complete = Yes
- Schedule ‘API Send Welcome email’ to current date and time
Trigger Option
- User clicks ‘button complete’
- Make change to current user: Profile Complete = Yes
- Trigger: User Before Now Profile Complete was not ‘Yes’ and User Now Profile Complete is ‘Yes’. Action: Send Welcome Email.
Practically speaking a trigger is more convenient but I don’t know which will have better performance.
Thanks for any advice in advance