Figured I'd throw this up here in case it helps anyone in the future, and possibly might be of interest to people who like software and want to hear about endless loops and how they can be caused. (Plus it allows me to rant about my own stupidity)
Today, I threw my software into an endless death loop for over 4 hours, and it cost me some good money. I use a texting service called TWILIO, as well as my email, to report errors back to my phone/email respectively.
My genius logic was this: email myself up to 10 times a day, and if I go over - text myself the message. However, if I hit 15 texts a day, my backup was to email myself the message. So basically, my text method hits a limit and tries to email me, but the email is at a limit and tries to text me, and back and forth it goes at 200 times a minute for 4 hours. I still have yet to figure out how the texting request actually was received by TWILIO, as it shouldn't have gone through after my limit was hit, but my credit card was charged over $800 as well, my software went down for 4 hours and I may have lost a customer over it, or otherwise will be paying extensive downtime fees.
Today, I threw my software into an endless death loop for over 4 hours, and it cost me some good money. I use a texting service called TWILIO, as well as my email, to report errors back to my phone/email respectively.
My genius logic was this: email myself up to 10 times a day, and if I go over - text myself the message. However, if I hit 15 texts a day, my backup was to email myself the message. So basically, my text method hits a limit and tries to email me, but the email is at a limit and tries to text me, and back and forth it goes at 200 times a minute for 4 hours. I still have yet to figure out how the texting request actually was received by TWILIO, as it shouldn't have gone through after my limit was hit, but my credit card was charged over $800 as well, my software went down for 4 hours and I may have lost a customer over it, or otherwise will be paying extensive downtime fees.
Dislike ads? Remove them and support the forum:
Subscribe to Fastlane Insiders.