Using a Message Queue With SMS For Throughput Limitations
In some countries, throughput limitation on SMS and slow request times add challenges for bulk sending, but using a message queue like AWS SQS can help navigate these limitations. A serverless microservice on AWS Lambda is created to send SMS messages using Vonage API, with the application serving two purposes: adding messages to SQS and facilitating sending through Vonage SMS. The application requires a Vonage API account, Python 3.8, Pip, Node.js, npm, and Serverless setup instructions. To run the app locally, a virtual environment is created, and dependencies are installed using pip and npm. Once deployed to AWS Lambda, authentication must be added to prevent public usage and usage charges. The application provides three URL endpoints: /, /add, and /process, with the latter kicking off the sending process by retrieving messages from SQS and connecting to Nexmo to send SMS messages.
Company
Vonage
Date published
May 5, 2021
Author(s)
Adam Culp
Word count
674
Language
English
Hacker News points
None found.