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

Remove caching wrapper stores if cache-size is configured to zero bytes

    Details

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

      Description

      Users can disable caching globally by setting the cache size to zero in their config. However, this does only effectively disable the caching layer, but the code is still in place.

      We should consider to remove the caching wrappers completely for this case. The tricky part is, that we insert the caching layer at compile time, ie, when calling `StreamsBuilder#build()` – at this point, we don't know the configuration yet. Thus, we need to find a way to rewrite the topology after it is passed to `KafkaStreams` if case caching size is set to zero.

      KIP: KIP-356: Add withCachingDisabled() to StoreBuilder

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                guozhang Guozhang Wang
                Reporter:
                mjsax Matthias J. Sax
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: