Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate amqp-connection-manager #11

Merged
merged 2 commits into from
Apr 8, 2020
Merged

Conversation

oleh-momot
Copy link
Collaborator

No description provided.

@oleh-momot oleh-momot requested a review from StyleT April 7, 2020 13:54

try {
this.connection = this.amqpLib.connect([this.mqURI]);
this.channel = this.connection.createChannel();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have you moved away from confirmation channel to a regular one? Couldn't this cause a data loss?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This library provides different API
I am going to add waitForConnect before publish
This library provides this method

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I investigated it, so this library saves all messages to buffer and even if it is not connected we are not going to lose our data, and then when a connection is stable it uses RabbitMQ API to confirm channel inside of instance in this.channel
We don't have waitForConnect because it uses only for unit testing inside of this library
In short, this case is covered by this library

@oleh-momot oleh-momot merged commit 774170c into master Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants