Add support for JSON Batch Format
@sadath-12 is already working on this.
Since Jan 16, 2024.
- Dominant language
- Go
- Stars
- 1.6k
- Forks
- 631
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 6
Description
Problem
CloudEvents spec v1.0.1 introduces the concept of batch events:
https://github.com/cloudevents/spec/blob/v1.0.1/json-format.md#4-json-batch-format
Knative Eventing Broker should support JSON Batch format from the event source and in the reply events.
Currently a function can return a single CloudEvent or an empty response. There are use cases when the function needs to return multiple cloud events. Currently this is not possible.
Persona:
Event producer
Exit Criteria
The broker should accept multiple cloud events in a single payload when media type is set to application/cloudevents-batch+json.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.