Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-30345

Improve the serializer performace of state change of changelog

    XMLWordPrintableJSON

Details

    Description

      Currently, AbstractStateChangeLogger use sync 

      DataOutputViewStreamWrapper to serialize state change which is unnecessary because it will always be executed in single thread.

      So replace it with a unsync one could improve the performance of serialization.

      In my simple stateful WordCount case, it could improve TPS by 10% at least.

      Furthermore, because the serialization and deserialization of key and value have been executed in some delegaed state backend, maybe we could avoid double serialization. It may improve the performance if the serialization logic is complex and even is the bottleneck.

      This ticket focuses on the sync serializer problem.
      The second problem about double serialization could also be disscussed, and I will create a new ticket if necessary.

      Attachments

        Issue Links

          Activity

            People

              masteryhx Hangxiang Yu
              masteryhx Hangxiang Yu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: