Skip to content

Cluster usage possibility #637

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

Merged
merged 4 commits into from
May 18, 2021

Conversation

Torondor27
Copy link
Contributor

  1. Added possibility to use multiple hosts
  2. Tests added
  3. Small refactoring is made

@Torondor27 Torondor27 requested a review from mihaileu as a code owner May 14, 2021 20:08
@mihaileu mihaileu requested review from ramunasd and videlalvaro May 17, 2021 19:37
}

// No need to unpack options, they will be handled inside connection classes
return $this->class::create_connection($hosts, $options);
Copy link
Member

Choose a reason for hiding this comment

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

Please bear in mind that there is no smart logic and it does not spread load accross cluster. All requests will come to first defined host unless it's unrecheable(dead).

@mihaileu mihaileu merged commit 9e5e0ad into php-amqplib:master May 18, 2021
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.

3 participants