1
00:00:00,390 --> 00:00:07,710
In this video we are going to talk about Amazon asks two types, which are the standard queues and five

2
00:00:07,710 --> 00:00:08,310
queues.

3
00:00:09,260 --> 00:00:13,550
So basically Amazon provides two types of messaging queues.

4
00:00:13,580 --> 00:00:15,560
Standard queue, five queue.

5
00:00:15,830 --> 00:00:17,540
You can see the image on the slide.

6
00:00:17,570 --> 00:00:18,710
We have two types of.

7
00:00:18,740 --> 00:00:21,060
Q And if you talk about the standard.

8
00:00:21,080 --> 00:00:24,490
Q Basically, it's the default.

9
00:00:24,500 --> 00:00:27,140
Q type offered by the Amazon case.

10
00:00:27,410 --> 00:00:33,680
This provide unlimited throughput, best effort ordering and at least one message delivery and some

11
00:00:33,680 --> 00:00:34,970
that could stand out.

12
00:00:35,000 --> 00:00:40,490
Q Is our default queue type in the Amazon case if you look at the five?

13
00:00:40,580 --> 00:00:46,970
Q Five, four means first in, first out, which simply means that message will be ordered in the Q

14
00:00:46,970 --> 00:00:51,500
and first message to arrive in the Q will be the first to leave the Q.

15
00:00:52,160 --> 00:00:57,980
So this is the two types in the Amazon case standard and Piper Q's.

16
00:00:58,370 --> 00:01:03,900
So let me evaluate them on various parameters that we specified earlier in this post.

17
00:01:03,920 --> 00:01:12,680
So basically we can say that the message ordering situation so is standard SKUs provide best offer ordering.

18
00:01:12,710 --> 00:01:17,990
In other words, it tries best to deliver a message in same order as they are sent.

19
00:01:18,020 --> 00:01:23,210
However, occasionally more than one copy of message might be delivered out of the order.

20
00:01:23,780 --> 00:01:27,160
But five accused offers first in, first out delivery.

21
00:01:27,410 --> 00:01:31,920
The order in which message are sent and receives is strictly preserved.

22
00:01:31,940 --> 00:01:35,600
As you can see in the image in the previous slide.

23
00:01:35,840 --> 00:01:39,350
And the second item that we can consider delivery.

24
00:01:40,500 --> 00:01:46,470
So standard queue guarantees at least once delivery, but sometimes duplicate or more than one copy

25
00:01:46,470 --> 00:01:47,970
of message can be delivered.

26
00:01:48,510 --> 00:01:54,720
Five accused ensure a message is delivered exactly once and remains available until a consumer processes

27
00:01:54,720 --> 00:01:55,740
and deletes it.

28
00:01:56,160 --> 00:02:03,120
Duplicates are not introduced in the queue of the five queues and we can also compare throughput of

29
00:02:03,120 --> 00:02:04,290
these queue types.

30
00:02:04,680 --> 00:02:07,470
Standard queues offers unlimited throughput.

31
00:02:07,470 --> 00:02:12,990
In other words, it supports nearly unlimited number of transactions per second per API calls.

32
00:02:13,380 --> 00:02:20,880
But five accused, on the other hand, are limited to 300 transactions per second per API action without

33
00:02:20,880 --> 00:02:26,670
batching and 3000 message with batching one new batch type message per operation.

34
00:02:27,330 --> 00:02:29,790
So that means five focus has some limitations.

35
00:02:31,940 --> 00:02:37,640
If you look at the use case of the queues, we can always use standard queue as long as you are able

36
00:02:37,640 --> 00:02:40,970
to process the case and out of order methods.

37
00:02:41,240 --> 00:02:47,330
But five accuse can be used when ordering of message is must end up the case are not accepted at any

38
00:02:47,330 --> 00:02:47,780
cost.

39
00:02:50,230 --> 00:02:56,890
So the standard to provide at least once delivery, which means that each message is delivered at least

40
00:02:56,890 --> 00:02:57,520
once.

41
00:02:58,580 --> 00:03:05,930
Five accuse provide exactly once processing, which means that each message is delivered once and remains

42
00:03:05,930 --> 00:03:07,820
available until the consumer process.

43
00:03:07,820 --> 00:03:13,070
It and delete its duplicates are not introduced in the queue of the five focus.
