Try to work out a way of only avoiding duplication #12
Labels
api: eventarc
Issues related to the googleapis/google-cloudevents-dotnet API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
With our current approach, we have duplication between serialization packages - both Google.Events.Protobuf and Google.Events.SystemTextJson include a "StorageEventData" type. This is to avoid forcing users to have a dependency on any particular serialization framework - both to avoid conflicts, and to allow functions etc to have minimal dependencies. The downside is that it adds a choice (which package to use) and could make it hard for libraries to be written that would like to be serialization-framework-agnostic.
Ideal requirements (noting that the Functions Framework can change - we don't have to worry about compatibility with the current alpha):
One potentially-inefficient option: if we had a serializer-agnostic representation in Google.Events, but then serialized "via" an internal class per serializer, that could work. The conversion between serializer-specific type and agnostic type could get hairy, and there are interesting versioning concerns... but it's a possibility.
The text was updated successfully, but these errors were encountered: