Coder Social home page Coder Social logo

Comments (5)

StephenSorriaux avatar StephenSorriaux commented on August 22, 2024 1

This explains why some tools always reports a lag of 1 for every faust consumer group. Thanks for this issue.

from faust.

alexpirine avatar alexpirine commented on August 22, 2024

That's so weird. I find it hard to believe faust developers just didn't notice this convention.

Would be very interested to know the reason why offsets are committed this way: I believe there must be some reason.

from faust.

vineetgoel avatar vineetgoel commented on August 22, 2024

We did notice this. I believe when we started working on this, we wanted to be more consistent with how most message queues manage offsets. Later on when we doubled down on our use of Kafka, we realized this was a bit of a mistake and have a it in our backlog to make this more consistent with Kafka.

from faust.

enavarro222 avatar enavarro222 commented on August 22, 2024

Is it any new on that point ?
This is very annoying if one want to use burrow with faust consumers !

Indeed burrow raise an alarm if a consumer lag stay greater than 0 for a given time window.

from faust.

sivasai-quartic avatar sivasai-quartic commented on August 22, 2024

Hi, I'm also facing the same issue. Like others said, it's already processed the last record, and it's not updated the offset. but its not processed the last record at all. I have a total of 8 records that are available in Kafka, but only 7 records are being processed.

here is the sample code:

@app.agent(input_topic, concurrency=1)
async def my_task(tasks):
    async for my_task in tasks.take(record_per_partition, within=poll_interval):
        assert len(my_task) > 0
        asyncio.gather(*(process_payload(json.loads(args.decode('utf-8'))) for args in my_task))

felt like, its a high priority.

from faust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.