Skip to content

Polling

The current approach is to get the notifications by polling the Core LTS Database.

To keep notifications synchronized, it's required to continuously gather the new/unread messages from Core LTS. For that purpose we make use of the MassTransit Scheduler.

A HostedService is used to run at background a recurrent scheduler configuration, that will send a synchronize notifications message every N given time.

The Polling recurrence configuration is set by default to one minute, but it can be changed from the configuration file, altering the Cron Expression:

JSON
1
2
3
4
5
{
    "CoreNotificationConnectorModuleOptions": {
        "CronExpression": "0 0/1 * 1/1 * ? *"
    }
}

Note

Bear in mind, that is just a first approach to the synchronization of Core LTS internal messages. In a future this can transition to WebHook or any other capable solution.