Twilio limits the long SMS code to 1 / s. To increase throughput, I divided my batch into 5 phone numbers. I found that each HTTP POST for the Twilio API takes about 0.5 seconds.
You would think that using 5 twilio phone numbers, it would take 200 seconds to send a message to 1000 cell phones, but it would take 500 seconds to send requests. Thus, two phone numbers will double my bandwidth, but will no longer affect.
Am I missing something? I thought it would be nice if the API took a list of phone numbers for the To option. I donโt want to pay for the short code, but even if I do, the maximum throughput is 2 / s, if you do not resort to the complexity of having multiple threads serving Twilio.
I noticed that TwiML during a call allows you to include several sms nodes when building a response, so it seems that there should be a way for outgoing SMS messages to do the same.
source share