Matt
Matt

Reputation: 1007

SNS Delivering Messages to a Deleted Subscription

I have an SNS topic with HTTPS subscriptions. The endpoint is an API that proxies a Lambda function, which formats and forwards the SNS message to a webhook (chat room). I was testing the unsubscribe functionality by following the 'UnsubscribeURL' link from the SNS 'Notification' and came across seemingly incorrect behavior.

However, subsequently when I then post a message to that Topic (whether via Console or AWS CLI), the message delivers to the Deleted Subscription (HTTPS endpoint).

¿Have others seen this behavior?

¿Have others found a solution or explanation?

Upvotes: 0

Views: 979

Answers (1)

Matt
Matt

Reputation: 1007

This appears to be an issue of timing. I would have expected unsubscription (and resubscription) requests to be executed pretty much immediately (delay measured in seconds). However, after testing and waiting a bunch of times it seems as though there exists a delay that ranges anywhere from a few seconds up to ~10m.

While Subscription deletions and creations are effectively immediate, Subscription unsubscribes and resubscribes have a relatively significant delay much of the time.

Upvotes: 2

Related Questions