Skip to content

Improve Docs for Choosing a Connection Factory #2473

Closed
@garyrussell

Description

@garyrussell

Discussed in #2469

Originally posted by kstojanovski-novatec June 2, 2023
The documentation lists three types of connection factories :

  • PooledChannelConnectionFactory
  • ThreadChannelConnectionFactory
  • CachingConnectionFactory

Two more can be seen in the sources:

  • LocalizedQueueConnectionFactory
  • SimpleRoutingConnectionFactory

The documentation says that the "PooledChannelConnectionFactory" should be used for most cases.
But starting a Spring AMPQ application initializes and uses a CachingConnectionFactory. Besides that many tutorials are using the CachingConnectionFactory and the Publisher Confirms feature can be used only with this connection factory type.

Has the information about the default connection factory changed over time and the documentation needs to be adjusted or there is another reason why the PooledChannelConnectionFactory should be used for most cases?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions