Learn how to send a message to a queue using the AWS SDK in this video.
- [Instructor] So now we created the Queue. … And we also have the lambda that does nothing, … that we have created in the previous chapter. … So, now this lambda needs to send a message to the Queue. … So, then we can create a new lambda … that will send a message to the delivery company. … So let's modify a little bit this code … so it's sending messages to the Queue. … For sending messages to the Queue, … what do we need to do is first require the aws-sdk … and then we are going to use the module sqs from here. … The module sqs, as the one of ses requires a region … and we can pass that as a environmental variable. … And then we will have a Queue name that we will need to … also have as an environmental variable. … Now we have set up this and then we need to start playing … a little bit with this code. … So we are getting our ordersFulfilled in the parameters. … So, we will use that, … we will go ordersFulfilled by ordersFulfilled … and send a message to the Queue one by one. … And also, this lambda needs to save the order …
- Backend as a service (BaaS)
- Function as a service (FaaS)
- Why infrastructure as code is so important
- Creating an order
- Setting up DynamoDB
- Saving into a DynamoDB table
- Using AWS SDK
- Sending a message to the stream
- Deploying and testing an application
- Cleaning up an AWS environment
Skill Level Intermediate
AWS for Developers: AWS AppSync with GraphQLwith Bear Cahill1h 25m Intermediate
Introduction to AWS DeepLenswith Jonathan Fernandes33m 50s Intermediate
What you should know1m 27s
1. Get Started with Serverless
2. Get Started with Kinesis
3. SNS, SQS, and Kinesis
4. Lifecycle of a Message in the Stream
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.