Hello, Please find the answers below:
- How to ensure that we are firing 1 api call per second if we refer to article 'a' above?
As mentioned in the document, it specifies on how to limit the API calls by using the SQS queueing mechanism along with the lambda function. You can implement a similar mechanism which allows consuming queue messages at fixed-rate.
- Also how to we utilise the maximum TPS without throttling, with reference to article 'a' above?
To maximize the Transactions Per Second (TPS) without throttling, you can use Batch API Calls i.e, instead of sending individual API calls for each message, batch them together. Group multiple messages into a single API call to reduce the number of requests made to Amazon Pinpoint. This can significantly improve efficiency and throughput. Also you can use Parallel Processing i.e, you can design your system to process multiple messages in parallel. This can be achieved by increasing the number of Lambda function instances processing messages from the SQS queue concurrently.
- Is monitoring the logs the only way to find out status of messages at carrier level?
Yes, currently inorder to find the status of the messages, the only possible way is to monitor the logs. It provides the details about messages whether they are delivered or failed due to any error.
- For which type of errors(at both carrier level and pinpoint level) should we retry sending the messages?
Kindly refer the following document for the different types of SMS errors that generally occur: [+]. https://repost.aws/knowledge-center/sns-unknown-error-phone-sms
You can implement the retry mechanism on all the errors that you are receiving. Please refer the below document which specifies on how to retry unsuccessful sms deliveries.
- How to handle Pinpoint SMS message per second rate (MPS) for broadcasting to large group of phone numbers?Accepted Answerasked 8 months ago
- asked 2 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a month ago
- EXPERTpublished 9 months ago