-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add event stream #39
Add event stream #39
Conversation
Adds an ADR proposing the addition of event notification streams to the API.
819ba9c
to
1be217a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments inline and otherwise LGTM.
I agree that Option 1 or 2 makes sense over Option 3. I think the structure of the message format will probably change for different delivery mechanisms and so I see it's more about getting maximum commonality between implementations. Similar to the HTTP object store choice, maybe a message format plus a implementation would help get some form consensus of what is needed? Something like Option 2 plus a simple example implementation, but not going as far as Option 1 just yet.
Adds the structure of event stream messages using the OpenAPI `webhooks` feature, a partial implementation of ADR0014 Option 2. sem-ver: feature
Adds an option to specify an example implementation, but leave it up to an individual service which to implement.
sem-ver: feature
1be217a
to
8dcf44d
Compare
How's 8dcf44d for that? |
I think that looks great, thanks. I think it's a good starting option to have. |
Details
Adds an ADR proposing a couple of possible approaches to an event notification stream, along with a proposal about what the message format might look like.
I think Option 3 (telemetry) probably doesn't make sense, but I'd appreciate thoughts on Option 1 (specify notification mechanism) vs Option 2 (leave it up to implementations). For now I've done the implementation for Option 2, but Option 1 is a build on that.
Also, it might seem like AsyncAPI is the better fit for describing this, but it's quite high-friction for both HTTP webhooks and AWS EventBridge, which are the two possible implementations we've previously talked about, so using OpenAPI seemed the better approach for a spec.
I'd also appreciate thoughts on how Sources should work - see comments in the OpenAPI doc.
Pivotal Story (if relevant)
Story URL: https://www.pivotaltracker.com/story/show/187071067
Related PRs
N/A
Submitter PR Checks
(tick as appropriate)
Reviewer PR Checks
(tick as appropriate)
Info on PRs
The checks above are guidelines. They don't all have to be ticked, but they should all have been considered.