Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Delta notification can be enabled/disabled by an additional admin API for a given anchor name. By default, delta notification will be disabled for all dataspaces. 

New API will be added as below.

...

API :  PUT https://IP:PORT/cps/api/v2/dataspace/<dataspace-name>/deltanotification/<subscribe or unsubscribe>

Request body:

...


To Persist the information about delta notification there are two approached proposed as below for consideration. 


  1. Persist delta notification information in additional field of dataspace table.

Additional field will be added to Anchor table to persist delta notification subscription. newly added field details are as below.  



Updated TableAnchorDataspace
new field name notification
typetext
example true (string). change later. 


2.  Add schema for notification subscription and add subscription information in to Fragment table when delta notification is subscribed. delete the fragment when delta notification is unsubscribed.

below actions will be performed when delta notification will be subscribed for the dataspace. 

  • schema set will be added to the dataspace when notification is subscribed.
  • Subscription data will be added into fragment as per schema set. 


Implementation details of delta notification

  1. For data nodes update operation, generate delta report by comparing previous and current configuration after successful update. 
  2.  Process data update delta event and send notification as described in event schema above.