Slide 16
Slide 16 text
Atlas Triggers
• Event-Driven: de
fi
ne actions that are automatically executed in response to certain database
events (inserts, updates, or deletes)
• Database, Authentication, and Scheduled triggers.
• Real-Time Execution: eventually consistent immediate execution
• Use Cases: task automating such as sending noti
fi
cations, updating related collections,
logging changes, or initiating other work
fl
ows.
Example
When a new user document is inserted into the “users” collection, a trigger
fi
res and executes a
function to send a welcome email or update a related “user_stats” collection.