Giter VIP home page Giter VIP logo

Comments (5)

damien avatar damien commented on July 16, 2024

Do you have multiple Kafka brokers/partitions? Could be you're just consuming messages from a single partition.

from poseidon.

psamim avatar psamim commented on July 16, 2024

@damien Thanks for the response.

I did not set a partitioner for the producer so it seems that it is publishing messages to more than one partition. Can I have a consumer to consume all messages from a topic regardless of the partition? Or at least a way to know how many partitions are there for a topic.

Thanks

from poseidon.

damien avatar damien commented on July 16, 2024

Unfortunately, consuming messages from Kafka is quite a bit more complicated than publishing messages to Kafka. I'm in the process of figuring out a similar problem myself and the best ruby based consumer library I've been able to find for the problem is poseidon_cluster.

Setting that up and pointing it at your brokers should ensure you get all the messages you're looking for; otherwise you probably really are seeing a bug in poseidon itself.

from poseidon.

psamim avatar psamim commented on July 16, 2024

I did a workaround which I think is wrong in general. I set the partitioner so that all messages are published to one partition. Then I create a partition consumer for that partition.

from poseidon.

damien avatar damien commented on July 16, 2024

That does seem to verify that you were only listening to one of multiple partitions. Definitely check out poseidon_cluster; your workaround may fix your problem but you'll be giving up a lot of Kafka's guarantees around persistence/availability if you're running off of a single partition.

from poseidon.

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.