How Can I Trigger The Client Side App From The Database

So my app has two separate pages which access my database. One page is a booking form and the other is a booking application.

When a booking is made and added to the database, I want the booking application to be automatically updated… so effectively for a trigger to come from the database to tell the booking application a new booking has been received.

Is there a clever way to do this?

The only way I can think of is to have a timer in the application which keeps asking the database if there is anything new to upload…

Best wishes,
Antony.

Hello Anthony,
You can use the action scheduler component to do this and refresh your data source every X seconds.
There is no way to reload the page in real-time, when a change in your database is made.

Hi Teodor @Teodor

if one uses the action scheduler to refresh the data source on the page… will this put any hectic load on the server… say you refresh the data every second… and you have 100+ plus users on this page… or will it be the same as a ajax call the data as a trigger?