knative / knative/eventing

Add support for JSON Batch Format

Open
#6,797 14 comments 2 reactions 1 assignee View on GitHub

@sadath-12 is already working on this.

Since Jan 16, 2024.

area/api area/delivery kind/feature-request triage/accepted
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.