Database Event Triggers: Streamline Logic with Native Automation
Following the success of our Event-Driven Architecture (EDA), we are excited to expand your toolkit with Database Events, a new capability exclusive to OutSystems Developer Cloud (ODC). While EDA allows for high-level application orchestration, this update specifically enables developers to build highly decoupled, reactive applications by triggering logic directly from database state changes, eliminating the need for manual wrappers or complex process modeling.
With this release, you can now trigger events based on native entity events—OnCreate, OnUpdate, and OnDelete—turning your database into an active participant in your application's architecture.
Key Features
- Native Entity Triggers: Directly subscribe to data changes at the source. Logic is automatically invoked whenever a record is created, modified, or removed.
- Asynchronous Execution: All database-triggered logic runs in the background. This ensures that your main user transactions remain fast and responsive, as the system doesn't wait for side-effect logic to complete.
- Access via Record ID: Each event provides access to the unique Identifier of the affected record. This allows you to easily retrieve the latest state to perform audits, handle cache invalidation, or stream data to external systems in real-time.
- Enhanced Reliability: Ensure that critical side effects—like audit logging or external data synchronization—happen every single time a record changes, regardless of where that change originated in your app.
- Seamless Studio Integration & Availability: Configure these triggers directly within ODC Studio under the Entity properties. This feature is currently rolling out to all ODC tenants; look for the new Events section under the properties of any Database Entity.
- ODC
- Developing with OutSystems