GithubHelp home page GithubHelp logo

Comments (4)

josevalim avatar josevalim commented on July 22, 2024

They go through the producer.

receive interval is the frequency to ping when the queue is empty. It doesn’t impact when the queue is full. It should not generate additional work to consumers.

from broadway_kafka.

lud avatar lud commented on July 22, 2024

Ok José, thank you :)

from broadway_kafka.

lud avatar lud commented on July 22, 2024

Hi again @josevalim

I found that if y set the concurrency option at the producer level to 5, messages are delivered instantly. The default 1 has the long polling delays, even with receive_interval set to 1.

This happens when all topics are fully committed, (queues are empty), I produce a message to Kafka and expect a "response" message to be delivered to the Broadway producer.

For now I keep it as-is but it feels weird to use multiple producers.

from broadway_kafka.

lud avatar lud commented on July 22, 2024

I tried an alternative implementation with Kaffe and I found the same behaviour, this time because of the sleep_timeout option for brod.

Though I guess broadway_kafka uses fetch instead of subscribers so I guess that is another problem.

from broadway_kafka.

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.