What is Trigger?
Turkish: Trigger (Tetikleyici)
A trigger starts a database action, integration step, or automation workflow when a specific event or condition occurs.
What is a Trigger?
A trigger starts another action automatically when a defined event occurs in a system. The event may be a form submission, database insert, file upload, successful payment, or scheduled time.
Types
Triggers are used at different layers:
- Database trigger: Writes an audit record after an INSERT, UPDATE, or DELETE.
- Application trigger: Starts email, invoice, or stock logic after an order is created.
- Webhook trigger: Runs an integration flow after an external system sends an event.
- Time trigger: Starts report generation or data synchronization at a set time.
What to Watch For
Triggers can create invisible side effects, so they should be logged, authorized, and designed to be idempotent when possible. The same event arriving twice may produce duplicate invoices, repeated notifications, or incorrect stock changes.
In event-driven architectures, a trigger often starts the event flow. A cron job is a time-based trigger rather than an event-based one.
Related Terms
A cron job is a scheduled Unix/Linux task that runs backups, reports, synchronization, or maintenance at fixed times or intervals.
Event-Driven ArchitectureEvent-driven architecture lets systems react through independent components when events such as orders, payments, or stock changes occur.