eclipse-uprotocol / up-spec

uProtocol Specifications
Apache License 2.0
33 stars 25 forks source link

Remove UPayload #144

Closed stevenhartley closed 5 months ago

stevenhartley commented 5 months ago

UPayload was added to encapsulate payload data and payload metadata (ex. content type, scheme, etc...) where UAttributes held the UMessage metadata (ex. priority, ttl, addresses, etc...). Initially we thought that we would need to pass more metadata about the payload in UPayload (passed by reference or value etc...) however that is no longer the case.

Furthermore none of the 4 implementations of uProtocol use UPayload over the "wire" so there is no need to define it in protobuf. For shared memory we will identify the data format through UPayloadFormat (to be renamed) in lieu of value vs reference and the by-reference metadata will be inside of data.

This issue shall be to remove uPayload from all references of the spec