Coder Social home page Coder Social logo

Comments (4)

bpasson avatar bpasson commented on July 20, 2024

@janyyy it is possible to define an arbitrary amount of brokers as follows on a per client base.

quarkus.rabbitmqclient.addresses.broker1.hostname=host1
quarkus.rabbitmqclient.addresses.broker1.port=5672
quarkus.rabbitmqclient.addresses.broker2.hostname=host2
quarkus.rabbitmqclient.addresses.broker2.port=5672

quarkus.rabbitmqclient.otherclient.addresses.broker1.hostname=host1
quarkus.rabbitmqclient.otherclient.addresses.broker1.port=5672
quarkus.rabbitmqclient.otherclient.addresses.broker2.hostname=host2
quarkus.rabbitmqclient.otherclient.addresses.broker2.port=5672

When you specify the addresses of the broker like this, the normal properties seen below are ignored.

quarkus.rabbitmqclient.hostname=host1
quarkus.rabbitmqclient.port=5672

quarkus.rabbitmqclient.otherclient.hostname=host1
quarkus.rabbitmqclient.otherclient.port=5672

Does this cover your use-case?

from quarkus-rabbitmq-client.

janyyy avatar janyyy commented on July 20, 2024

Thanks for the reply, my use case is want to implement cluster connection. When a node in the cluster fails, it will automatically switch to other connections. This does not affect the creation and consumption of messages by RabbitMQ. Does this project support this operation?

from quarkus-rabbitmq-client.

bpasson avatar bpasson commented on July 20, 2024

@janyyy You can specify an unlimited amount of brokers for a single client. This is exactly like you would do it in spring, it is just configured a bit differently but it should cover your use-case. Give it a go. If it doesn't work as expected supply the feedback in this ticket and we can see how to go from there.

from quarkus-rabbitmq-client.

janyyy avatar janyyy commented on July 20, 2024

Thanks, The configure of address it's normal work. I think you can write it in README.md

from quarkus-rabbitmq-client.

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.