Closed
Description
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?