Barcode reader in the our Airport vip lounges is triggering a REST Service in our Salesforce service org and after that the screen of the vip lounges should get refreshed with the information of the clients boarding cards.
Technically what it is happening is:
Barcode reader Inserts R1_X record into Salesforce.
Trigger in before insert validates the record and sets the status to 'Approved' or 'Denied'
- VF page has subscribed to the push topic VipLoungeUpdates.
-We create push topics each of which is associated with a SOQL query and applications or in our case VF page can suscribe to the push topics, As relevant data is updated in R1_X ,the platform evaluates the query for the push topic and if the result of the query changes then a notification is gonna be sent to the subscribing applications.
This was developed when streaming API was new but I assume it is legacy now. Can the code or functionality be better maintained and developed with its newer versions say CDC or platform Events?