Open matzew opened 5 months ago
Supposing we are going to support multiple components with cloud events this require a lot of work: for s3 for example, you can decide to exclude the body from the payload, by specifying a parameter in the Kamelet configuration, the problem is much more related to the fact you don't have a way to directly point to the S3 object: if it's a public object we could build the URL, if it's not we should create a pre-signed URL which require some work but also some API call and some cost.
Doing for all the CE supported components is not easy and require a lot of time. So not sure this could be done without some coordinated effort.
In the CloudEvent spec, there is the
dataref
extension defined: https://github.com/cloudevents/spec/blob/main/cloudevents/extensions/dataref.mdIt would be nice to have a way to make use of this, especially to avoid sending large data, e.g. in sources that shuffle data, like from AWS for example: