1
00:00:00,300 --> 00:00:07,530
In this video, we are going to send and receive message to Q on Amazon SDKs using SDK libraries.

2
00:00:07,890 --> 00:00:13,680
So please open the we used to do code and as you can see that we are using these commands to perform,

3
00:00:13,690 --> 00:00:15,870
send, receive message from the queue.

4
00:00:15,900 --> 00:00:18,700
So let's start with the send message queue.

5
00:00:18,720 --> 00:00:23,250
To get more detail, you should go to the documentation in here.

6
00:00:23,250 --> 00:00:29,220
If you can search for the send message command in the case client, it is a secure documentation.

7
00:00:29,370 --> 00:00:35,460
You can go to the send message to command documentation, see the example usage and see the input with

8
00:00:35,460 --> 00:00:37,830
the send message command input object.

9
00:00:37,830 --> 00:00:41,430
So in this object it is requiring this kind of properties that we should provide.

10
00:00:41,430 --> 00:00:43,500
The important one is the query URL.

11
00:00:43,650 --> 00:00:48,990
So let's go back to our we just do code and implement this send message command.

12
00:00:49,020 --> 00:00:55,230
In order to do that, please create a separate, separate object, separate JavaScript file, which

13
00:00:55,230 --> 00:00:58,050
is the send message that is.

14
00:00:58,050 --> 00:01:02,250
And in this file we will send message in sending to send message command.

15
00:01:02,250 --> 00:01:07,290
But before that we should create a queue because in the last video we have delayed a queue.

16
00:01:07,290 --> 00:01:12,700
So let me perform creating a new queue and after that we will send message to Nuku.

17
00:01:13,020 --> 00:01:19,080
Please open the terminal and run the node command with pacing to create queue dodges hit enter.

18
00:01:19,110 --> 00:01:22,740
So this will create a new queue on the Amazon SDKs.

19
00:01:22,740 --> 00:01:28,590
So here you can see the queue, copy the queue URL, newly generated created queue.

20
00:01:28,590 --> 00:01:33,900
And after that go to the send message that is and passing the queue in here.

21
00:01:33,900 --> 00:01:40,290
So this is very important step in order to send message to this queue and we also provide the delay

22
00:01:40,290 --> 00:01:44,280
second and message, but the information to send message to this queue.

23
00:01:44,280 --> 00:01:50,940
So now we have prepared the parameters and this is the our command and we are using the client.

24
00:01:51,060 --> 00:01:57,750
Again, I'm going to send message with using the supply and I'm going to run node command with passing

25
00:01:57,750 --> 00:02:02,730
the send messages, hit the enter and see what's happened.

26
00:02:02,730 --> 00:02:08,880
So as you can see that we have successfully send message and you can see the message ID in here to verify

27
00:02:08,880 --> 00:02:14,040
this message we can go to a mission console, go to queues.

28
00:02:14,040 --> 00:02:20,520
If we refresh this page, we have created new queue and if you open the queue and click the send receive

29
00:02:20,520 --> 00:02:24,030
message, we can see that available message is one.
