[Thrilling] Text message repetition accident

Source: Internet
Author: User
Tags repetition
Cause of two accidents:
  • First time: Sent during local debugging. The interface for sending text messages needs to send a receiver's account and receiver's mobile phone number. During debugging, I set the receiver's mobile phone number to my own, then the recipient's account is a real account. During the debugging, I went to discuss other issues. When I received multiple text messages, those recipient accounts also received multiple text messages.The text message interface will check the mobile phone number according to the account. If the recipient's account and the recipient's mobile phone number are different, two people will receive the text message.
  • Second:The default trigger is triggered once every 24 hours. to check whether the trigger is normal and whether other logic is correct, I set the interval to 5 seconds.The pre-deployment code is changed back, but not compiled. Therefore, the deployment code is separated by 5 seconds.It should be triggered at half past nine am. Why is it triggered every five seconds? The first time interval is special, which is related to the deployment time. Assume that the interval for the first trigger is also 24 hours. If we deploy the trigger at half past five P.M., the next trigger will be half past five tomorrow, which does not meet the requirements for triggering at half past nine. Therefore, the first trigger time must be corrected,That is, the first interval is: the time length between the trigger initialization time and half past nine tomorrow morning,The trigger time is automatically changed to 24 hours after the trigger is triggered tomorrow morning.

 

PS: for the first time, there were 8 internal staff and 6 internal staff. The first interval is 3 seconds, and the second interval is 5 seconds. After about 10 minutes each time, I receive feedback and stop the service. It is estimated that the two initial messages will be sent (10*60/3) x 8 + (10*60/5) x 6 = 2320 duplicate messages.

Inspiration: the function of automatic fault detection should be provided. If three messages with the same content as the recipients are found within 10 minutes, the SMS platform should reject the requests.

 

[Thrilling] Text message repetition accident

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.