Coder Social home page Coder Social logo

Kafka Messaging extension: Ability to create/provision Reactive Kafka Consumers dynamically(Runtime) without @Incoming annotations about quarkus HOT 4 CLOSED

xqianwang avatar xqianwang commented on July 18, 2024
Kafka Messaging extension: Ability to create/provision Reactive Kafka Consumers dynamically(Runtime) without @Incoming annotations

from quarkus.

Comments (4)

quarkus-bot avatar quarkus-bot commented on July 18, 2024

/cc @alesj (kafka), @cescoffier (kafka), @ozangunalp (kafka)

from quarkus.

xqianwang avatar xqianwang commented on July 18, 2024

@cescoffier @ozangunalp Some suggestions or insights please.

from quarkus.

cescoffier avatar cescoffier commented on July 18, 2024

Reactive messaging has been designed for a declarative model where you know the topics in advance.

You can use regexp on the consuming side or metadata on the producing side to handle dynamic topics. Note that for regexp, it will only fetch new topics when metadata are refreshed (that's periodic).

If you need more dynamism, you can use the bare Kafka client for this. Note that you will need to make sure you understand how Kafka consumers and producers work. Also, creating Kafka topic dynamically has costs on the broker - make sure you understand that before creating millions of topics.

from quarkus.

xqianwang avatar xqianwang commented on July 18, 2024

Reactive messaging has been designed for a declarative model where you know the topics in advance.

You can use regexp on the consuming side or metadata on the producing side to handle dynamic topics. Note that for regexp, it will only fetch new topics when metadata are refreshed (that's periodic).

If you need more dynamism, you can use the bare Kafka client for this. Note that you will need to make sure you understand how Kafka consumers and producers work. Also, creating Kafka topic dynamically has costs on the broker - make sure you understand that before creating millions of topics.

Thanks for reply. For the webhook use case, how can I handle it with reactive messaging?

from quarkus.

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.