Table of Contents |
---|
...
# | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
1 | id | UUID of the event | |||||||||
2 | source | urn:cps:org.onap.cps | |||||||||
3 | schema | urn:cps:org.onap.cps:data-updated-event-schema:v1 | |||||||||
4 | type | org.onap.cps.data-updated-delta-event | |||||||||
5 | content | { "operation": "UPDATE",
} |
...
Option | Pros and Cons | Decision |
---|---|---|
Send delta notification for the update operation when update request contains optional query parameter to receive notification. | Pros:
Cons:
| |
Configure dataspace/anchor in yaml file to allow delta notification. | Pros:
Cons:
| |
while creating dataspace/anchor, configure to send delta notification. | Pros:
Cons:
| We decided to try this approach. detailed implementation provided below. |
Implementation of controlling delta notification
While creating an anchor client need to provide an optional parameter (query parameter/header) to receive delta notification in Kafka. by default, delta notification will be disabled for all anchors.
delta notification can be disabled for an anchor in anchor update API.
Implementation details
- For data nodes update operation, generate delta report by comparing previous and current configuration after successful update.
- Process data update delta event and send notification as described in event schema above.