Subscription on Facts
It is a subscription to the results of Query Fact Records.
Query can be converted to subscription by replacing query
word with
subscription
.
Every new block on the blockchain will send the data to this subscription if it contains the data for the query. It can be one or more records. If the block does not contain data that you query, it will not trigger the results.
This subscription is appropriate when:
- application is capable to process raw stream of the data;
- minimum delay required between the data in the blockchain and the application;
- notification is required on trigger, defined on some specific conditions.