Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-94465

Update Kafka Offsets for consumer groups in near-real time

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Atlas Streams
    • Sprint 57, Sprint 58

      Today we only update the consumer group offset for a processor every 5 minutes if it does not have a window and every 1 hour if it has a window. This is a poor user experience has many customers have infrastructure and integrations that monitor the Kafka consumer group offsets movement and calculate total lag for alerts. We should change this so the offsets are updated in near-real time to support the expected behavior customers have around kafka consumer group offsets. 

      To configure this, we use the same Kafka property - enable.auto.commit and the default is true

      $source: { config:

      { enable_auto_commit: "true|false" }

      }

      When auto.commit is true, we update the consumer group as we read messages. When auto.comit is false, we update the consumer group offsets only after the corresponding offsets are committed in a checkpoint and flushed to S3 (this is already implemented).

            Assignee:
            andrew.chen@mongodb.com Andrew Chen
            Reporter:
            joe.niemiec@mongodb.com Joe Niemiec
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 2 weeks
                2w
                Remaining:
                Remaining Estimate - 2 weeks
                2w
                Logged:
                Time Spent - Not Specified
                Not Specified