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

Implement Reusable RabbitMQ Connection in Publisher #46

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

radwo
Copy link
Member

@radwo radwo commented Nov 13, 2023

This pull request introduces enhancements to the Tackle.publish by implementing the ability to reuse a RabbitMQ connection via Tackle.Connection.open(name, ..). This change aims to improve performance and resource management by minimizing the overhead of establishing new connections for each publishing action.

@radwo radwo changed the title remove userinfo from logged urls utilize connection_id in publisher Nov 13, 2023
@radwo radwo changed the title utilize connection_id in publisher Implement Reusable RabbitMQ Connection in Publisher Nov 13, 2023
@radwo radwo mentioned this pull request Nov 13, 2023
routing_key: "test-messages",
}

Tackle.publish("Hi!", options)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a test that verifies this? It should probably publish a few times in a row and check the number of open connections.

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.

2 participants