Skip to content

Springboot Application publish SMS are not working sometimes

0

Springboot Java application running in Aws App runner is communicating with SNS(production mode) through VPC Endpoint with help of I am role and policy. SMS published by application reaches SNS but fails sometime and most of the time it working fine (Not reached the limit 27 sms in 8 hours distribution). Any help on this is highly appreciated.

1 Answer
0

Hi Vijay

To troubleshoot this issue, consider the following:

  1. Check SNS metrics and logs: Monitor SNS metrics, such as "NumberOfMessagesPublished" and "NumberOfNotificationsFailed", to identify any patterns or spikes in failures. Also, inspect the SNS logs to see if there are any error messages related to the failed messages.
  2. Verify IAM role and policy: Double-check that the IAM role and policy attached to your App Runner service have the necessary permissions to publish messages to SNS.
  3. VPC Endpoint configuration: Ensure that the VPC Endpoint is correctly configured and that the security groups associated with it allow traffic to SNS.
  4. App Runner service logs: Check the logs of your App Runner service to see if there are any errors or exceptions related to the SNS communication.
  5. SNS topic configuration: Verify that the SNS topic is correctly configured, and that the subscription (e.g., SMS) is active and properly set up.
  6. Throttling: Although you mentioned you're within the allowed limit, it's still possible that throttling is occurring. Check the SNS metrics for "PublishThrottled" to see if your application is being throttled.
  7. Network connectivity: Ensure that the network connectivity between your App Runner service and the VPC Endpoint is stable and not experiencing any issues.

Relevant Document Links:

**

**

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.