Git Product home page Git Product logo

vertx-rabbitmq-client's Introduction

RabbitMQ Client for Vert.x

Build Status (5.x)

A Vert.x client allowing applications to interact with a RabbitMQ broker (AMQP 0.9.1)

Getting Started

Please see the main documentation on the web-site for a full description:

Running the tests

The tests all use a instances of rabbit dynamically created in a local docker instance (i.e. the user running the tests must have permission to create docker containers).

% mvn test

vertx-rabbitmq-client's People

Contributors

vietj avatar yaytay avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vertx-rabbitmq-client's Issues

Continuous reconnect when not using automatic recovery

Version

4.4.0

Context

Setting up the RabbitMQ client like described in the documentation:

RabbitMQOptions options = new RabbitMQOptions();
options.setAutomaticRecoveryEnabled(false);
options.setReconnectAttempts(Integer.MAX_VALUE);
options.setReconnectInterval(500);

I can see in the logs, that it does re-connect every 500ms even if there aren't any issues with the connection.

After changing it to

RabbitMQOptions options = new RabbitMQOptions();
options.setAutomaticRecoveryEnabled(true);
options.setReconnectAttempts(0);

the application works just fine with the client.
There aren't any logs that indicate something could be wrong with the first setup, though.

Do you have a reproducer?

No reproducer, but if it helps I'll try building one with test containers? (there'd have to be a RabbitMQ server included, I guess)

Steps to reproduce

See above ๐Ÿ™‚

Extra

  • RabbitMQ 3.11.1
  • Linux 6.1.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 24 Jan 2023 21:07:04 +0000 x86_64 GNU/Linux
  • OpenJDK 17

Support publishing with confirmation

RabbitMQ has ability to confirm message publishing.
So we must complete Future only after such confirmation.
Of course this is an optional feature.

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.