Skip to content

Added rabbit connection pool to rabbit exchange implementation.#34

Open
raulincze wants to merge 3 commits intotopic-exchangefrom
feature/connection-pool
Open

Added rabbit connection pool to rabbit exchange implementation.#34
raulincze wants to merge 3 commits intotopic-exchangefrom
feature/connection-pool

Conversation

@raulincze
Copy link
Contributor

No description provided.


const (
maxRequeueNo = 3
defaultMaxConnections = 20
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is misleading as the number is the max number of idle connections in the pool. The total number of connections can be larger. We might want a way to limit that, maybe having another chan for connection currently in use.

connMu sync.RWMutex
}

func NewRabbitExchange(rabbitIni RabbitConfig) *RabbitExchangeImpl {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need a way to pass the max connections from outside.

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.

1 participant