Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8401

Use protobuf 3 Any to avoid reflection during serialization

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Content Distribution Journal Kafka 0.1.0, Content Distribution Journal Messages 0.1.0
    • None
    • Content Distribution
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cschneider Christian Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m