Using Amazon SQS for Queuing Messages Using AWS Lambda and Python
When expecting large volumes of messages, using a message queue like AWS SQS can help navigate issues such as ensuring all messages are received. A serverless microservice on AWS Lambda can be created to add messages to SQS and facilitate sending through Vonage SMS, serving two purposes in the process. To complete this tutorial, prerequisites include Python 3.8, Node.js, npm, a Vonage API account with API Key and Secret, and setup instructions involving cloning a repository, renaming files, updating environment variables, and creating AWS credentials. Once set up, the application can be run locally or deployed to AWS Lambda, where it provides four URL endpoints for testing: / (no action), /add (stores message in SQS), /get (retrieves message from SQS FIFO queue), and /delete (deletes message from SQS).
Company
Vonage
Date published
Nov. 6, 2020
Author(s)
Adam Culp
Word count
681
Language
English
Hacker News points
None found.