-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x-correlator in CloudsEvent notification? #164
Comments
From Telefonica view, the indication of the support of x-correlator header in the POST notification sent to the listener is good to be reflected in the APIs. Indeed we consistently can incorporate as well in https://github.com/camaraproject/Commonalities/blob/main/artifacts/notification-as-cloud-event.yaml. In CloudEvents spec there is no reference to The indication of the support of the
Therefore, indicating it within the POST notification, we are not adding something additional but just reflecting the possible use of this header within this communication flow, with the purpose given to this header |
Thanks @PedroDiez |
Fine from my side. |
@PedroDiez @bigludo7 I have here a slightly different view: If we are indicating the Also on the API Provider side: if we indicate that there could be an X-Correlator header in the POST Notification and the API Consumer has to implement the logic anyway, shouldn't it be then maybe mandatory for an API Provider to send an UUID to be consistent across API implementations? BTW: |
@PedroDiez @bigludo7 @hdamker I'm not sure I fully understand the use case. Do we want to correlate notifications with their subscription (inject the X-Correllator provided by the subscriber when requesting a subscription) or correlate the notification with its response? |
Hi, @hdamker Understood you point, and from our view the fact that an API Consumer indicates back the X-Correlator in the response when indicated in request by API Server is not a big effort, and the indication of it in the request is not mandatory for the API Server. At the end is the same commitment as in the other way, if an API Consumer indicates it in the request it is mandatory for the API Server to send back in the response. So, even it has some impact in API Consumers, it is needed to be able to perform the correlation in these kind of flows and give value to the purpose of this header. @patrice-conil It refers to correlate the notification with its response |
As per commented in Commonalities Meeting 25th March, for the notifications case, the indication fo the correlator by the API Consumer will be indicated as recommended behaviour, and indicated properly in issued PR |
Problem description
We took the decision to add
x-correlator
in our API which is fine but I have a doubt for notification.Do we have to add the x-correlator as well in the POST {$request.body#/webhook/notificationUrl}? This is the notification send to the listener.
In order to stay fully compliant with CloudsEvents (I did not find any mention x-correlator in CloudsEvents) I tend to think that we must not have this x-correlator in the notification response & endpoint (for CloudsEvent compliance and to get it easy for the developer)
Expected behavior
Add this specific comment in the guidelines
Alternative solution
Additional context
The text was updated successfully, but these errors were encountered: