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 | |
---|---|
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.