You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SNS: Server unable to handle too much load — AWS SDK connection pool acquire timeout #10108
Under a heavy volume of SNS Publish calls, the AWS SDK fails with:
java.util.concurrent.CompletionException: software.amazon.awssdk.core.exception.SdkClientException: Unable to execute HTTP request: Acquire operation took longer than the configured maximum time. This indicates that a request cannot get a connection from the pool within the specified maximum time. This can be due to high request rate.
When the publish rate is high, the moto server can't process messages fast enough to keep up, so the client's connection pool stays saturated and acquisition times out. It appears to be a single-process throughput limit.
Note: the SNS topic has an SQS subscription (SNS → SQS fan-out), so each publish also performs delivery to the subscribed queue inline within the publish request.
The same client configuration works without errors against LocalStack, which points to a server-side throughput difference rather than a client issue.
Environment
moto 5.2.2, server mode (motoserver/moto Docker image)
AWS SDK for Java v2 (Netty async client, default pool settings)
Expected: moto server sustains a heavy SNS publish load (including SNS → SQS delivery) without exhausting the client connection pool, comparably to LocalStack.
Activity
bblommers commentedon Jul 15, 2026
Hi @mariuszbluestonepim! Can you share a small reproducible sample?
And second - what do you consider
a heavy volume? How many RPS/messages does one need to send before this becomes a problem?mariuszbluestonepim commentedon Jul 20, 2026
Hi. Reproducible sample attached, plus the RPS numbers you asked for.
Setup:
build.gradle
docker-compose.yml
Sample application:
Test3.java
Test results:
motoserver:
localstack:
Mide69 commentedon Jul 26, 2026
Can this be assigned to me if it is available?