Comments (4)
@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.
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.
@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.
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)
- Updating all contributors HOT 1
- Update docs
- add codestart support
- add devmode support HOT 4
- declare capability for other extensions
- Mocking RabbitMQClient does not work HOT 4
- Migrate build pipeline to new standard
- Quarkus 3 HOT 3
- How rabbitmq cluster configuration works HOT 2
- Fix ecosystem CI build
- Include description tag in runtime module pom.xml
- Question: benefits of this extension and quarkus-smallrye-reactive-messaging-rabbitmq alternative HOT 1
- Bad healthcheck when default connection is missing in conf file HOT 3
- Enable metrics collection HOT 3
- Support disabling clients HOT 2
- Supporting micrometer metrics thru MicrometerMetricsCollector HOT 3
- topologyRecovery does not fire HOT 8
- Add support for graceful shutdown HOT 2
- Connecto to rabbitmq cluster HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quarkus-rabbitmq-client.