All Collections
Realm
Can App Services database triggers run on an Atlas cluster's secondary node?
Can App Services database triggers run on an Atlas cluster's secondary node?

How does database trigger work?

Joao Boesso avatar
Written by Joao Boesso
Updated over a week ago

Database triggers do not run specifically on a primary or secondary node. This is because App Services triggers use change streams, which subscribe to all data changes on a single collection. A change is only committed after the data change event has been committed by a majority of the nodes and this is not configurable.

Did this answer your question?