You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2019/08/05 13:08:00 UTC
[jira] [Updated] (SLING-8401) Use protobuf 3 Any to avoid
reflection during serialization
[ https://issues.apache.org/jira/browse/SLING-8401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Schneider updated SLING-8401:
---------------------------------------
Fix Version/s: (was: Content Distribution Journal Core 0.1.4)
(was: Content Distribution Journal Kafka 0.1.4)
> Use protobuf 3 Any to avoid reflection during serialization
> -----------------------------------------------------------
>
> Key: SLING-8401
> URL: https://issues.apache.org/jira/browse/SLING-8401
> Project: Sling
> Issue Type: Improvement
> Components: Content Distribution
> Affects Versions: Content Distribution Journal Kafka 0.1.0, Content Distribution Journal Messages 0.1.0
> Reporter: Christian Schneider
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> We currently use a home grown deserialization using cutom message properties and reflection to be able to mix different message types on the same topic.
> In protobuf 3 there is a standard way to do this by using the Any type. This stores the type of the message and so allows to deserialize in a straight forward way.
> See [https://stackoverflow.com/questions/32613667/protobuf-3-0-any-type-pack-unpack]
> Notice this change is not wire compatible.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)