Alibaba Cloud SendSms: OutId Is Not an Idempotency Guarantee

Published: · Updated:
Share

Repeating Alibaba Cloud SendSms with the same OutId does not guarantee a single send after a timeout. OutId is an external reference field, and the documentation explicitly says SMS does not provide idempotency support.

Alibaba Cloud SendSms: OutId Is Not an Idempotency Guarantee — article key points

A timeout leaves the remote outcome uncertain

The service may have accepted a request before the client stopped waiting. Alibaba Cloud recommends checking receipt status before deciding whether to retry. Retain the logical task, request time and available send identifiers.

OutId can associate business records, but it does not require the API to reuse an earlier result or reject a repeated send. RequestId, BizId and your task reference are not interchangeable deduplication guarantees.

Coordinate concurrent clicks and automatic retries in application state. Distinguish confirmed submission, uncertain outcome and an authorized fresh send instead of endlessly resubmitting.

References: Alibaba Cloud SendSms: OutId Is Not an Idempotency Guarantee — official documentation.

Need help?

Click here and start chatting with us!