vttranlina commented on PR #2514:
URL: https://github.com/apache/james-project/pull/2514#issuecomment-2490210967

   Although using a connection pool is a "application layer" solution that can 
fix this issue, but IMO, it does not solve the root cause. 
   The connection pool size must be "large enough" to avoid errors.
   
   This can be better understood through the following example:
   Give: Connection pool size = 3
   When reactive chain logic:
   ```
   getUser  
   .flatMap(user -> getMailbox)  
   .flatMap(mailbox -> getMessages)  
   .flatMap(message -> updateQuota)
   ```
   
   You can see in the chain that we need 4 connections available at the same 
time.
   
   4 > 3 => We will get an exception.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to