In this video, we are going to send and receive message to the crew on Amazon space using the management
console.
Let's get started.
Please open the measurement console.
Go to Amazon space and open the order queue and click the send and receive message button.
So now we are going to send message and receive message from the queue.
And for that purpose, we are going to add a message in the send message box.
We can come here and we should provide a message.
I would like to enter three messages into queue and see what's happened one by one.
For example, I'm sending the message as a Jason format and you can see that I'm sending the message
one in the message keyword.
Okay.
If you scroll down, you can see the receive message.
Also in here, we will send several message in this box.
And after that, we will get these receive these message with pulling from these the second box.
Now I am sending the message one.
Please copy paste from the message one and click the send message.
So our message is sent successfully.
Now I'm going to send message to and click the send message again.
Message to also send successfully and change the message three and send again.
So that means we have sent three messages into the Amazon HQ and we don't set any delivery delay.
So that means this will be immediately received from the Q when it is requesting from polling message.
So if you scroll down, see that our message count is scene three and we can see the available message
that we can receive the control.
The available message are three.
So that means we can successfully add three message.
So our queue has three message now and waiting for the receive.
Right, so we can receive all message with clicking the pull for message.
You can see that we are in the receiving message box and there is a button which name is Paul for message
and we can get the all available message with clicking this button.
So let's click and see what's happened.
See that we have successfully pulled all three methods in the one poll operation and polling progress
is still ongoing.
I can stop polling because I know that we have three message available message on the queue and we already
get all three messages in the queue.
So let's see message one by one.
For example, let me open the first one if you can see that this is the message three and if you see
the second one, this is the message two.
And the first one is the message one.
So as you can see that there is no any order delivery.
So that means these message can be randomly and we can see that the receive count is one.
So that means every message comes one time, but it could be one more time because there is no guarantee
for the standard queue.
We can get the same message two times, but this time I can see the every message comes from the one
time and we can see the random order, these messages.
So now you can think that once we pull message from the case, we should process these messages into
our application receiver application.
You can see the consumer application and think that we perform our logic and now it is time to delete
message in the queue for the consumer service.
Paul The message from the case and process the business logic and now it is time to remove the message
from the queue.
I'm going to select the message and click the delete button.
See that we can delete the message three And now available message comes to two and I am going to select
all and delete all message.
I'm showing all these details because we will perform all these actions with using the SDK libraries.
That's why I'm showing all this detail from the management console.
So select all message and click the delete.
So we have successfully delete all message from the case.
And if you refresh this page, you can see that we have no available message in the case.
Okay, very good.
Now let's create again this message with sending message again.
I'm going to send all these three messages again.
And I would like to show one more thing.
Click to send message message to and click the send message and the message three and click the send
message.
Okay, very good.
Now we have also again available message will be three.
Let me come to open again this send this email and come again this page.
You can see that available message are three.
Now I'm going to pull again, but this time I would like to edit the post settings.
You can see in here, we can edit the post settings, click this button and see that we can set the
population and maximum message count.
So that means when we perform one pull operation, it is duration is the third second and it is getting
message count maximum ten.
So if I set the one so that means this will get the maximum one message.
So click this save button and if you pull message now we can get the message one by one, click the
pull message.
So see that one message comes receive in our application.
You can think that we are in the consumer application, that we can receive the message one by one.
If you expand this message, you can see the message one, okay, I'm going to pull message again,
make sure that you receive count is one.
Again, I'm selecting the pull for message and this time if I open this message, you can see the message
one comes again one more time.
So that means receive count comes to so that means the message are not receive in order like PIPO.
And also if we pull for message again and again, we can increase the receive count to three, four
and so on.
So if we configure that little queue for this queue and set the receive count equal three, this message
will be transferred to the editor.
Q one reach the recipient equal to three.
So in order to avoid receive receiving unprocessed message again and again, we can set the data Q into
the Q So as you can see that we have create the Amazon case and understand how we can send and receive
message with the pull for message from the case.
We can do all these send, receive and pull message operation with the programmatically.