Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-7277

Migrate Streams API to Duration instead of longMs times

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: streams
    • Labels:

      Description

      Right now Streams API unversally represents time as ms-since-unix-epoch.

      There's nothing wrong, per se, with this, but Duration is more ergonomic for an API.

      What we don't want is to present a heterogeneous API, so we need to make sure the whole Streams API is in terms of Duration.

       

      Implementation note: Durations potentially worsen memory pressure and gc performance, so internally, we will still use longMs as the representation. 

      KIP: https://cwiki.apache.org/confluence/display/KAFKA/KIP-358%3A+Migrate+Streams+API+to+Duration+instead+of+long+ms+times

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                NIzhikov Nikolay Izhikov
                Reporter:
                vvcephei John Roesler
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: