In general, one can use the events/notifications of the database, the exact term and the implementation depends on the DBMS, as each one uses a mechanism different. Firebird for example, implements this using the instruction POST_EVENT
, the Postgresql uses NOTIFY
, etc..
With Firedac, you can get alerts using the component TFDEventAlerter
, the page Database Alerts (Firedac) of Embarcadero mentions:
The DBMS alert refers to a database notification or alert
sent by a database trigger or stored Procedure
for the purpose of notifying a database client about some
events on the database side.
An alert is identified by name and may include arguments
additional. Customers are registering with alerts. Multiple customers
can register with a single alert, and a customer can register
with multiple alerts. When an alert is flagged in a
data, all registered customers will be notified of this.
When an alert is no longer used, the application cancels the registration to
that warning.
Perfect, that’s what it is!
– Anderson Nunes