High latency when executing SNS publish operation #3760
Unanswered
m-combinator
asked this question in
Q&A
Replies: 1 comment 2 replies
-
However, one metric that is included in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm seeing some occasional latency spikes in production (up to 7 seconds) when publishing to SNS from EC2. According to datadog APM, the bottleneck is the call to
SocketInputStream.read(byte[], int, int, int)
which happens somewhere deep in the publish call. When looking at the sdk metrics in cloudwatch, the APICallDuration and ServiceCallDuration correlate with the numbers in datadog (> 6 seconds).I'm using a
r6a.2xlarge
EC2 instance which runs in the same region as SNS (us-east-1)I'm also using the SNS Java sync client and I'm creating it as follows
Any suggestions on possible fixes?
Beta Was this translation helpful? Give feedback.
All reactions