1
00:00:00,310 --> 00:00:02,850
So now let's talk about Amazon MQ.

2
00:00:02,850 --> 00:00:07,160
So SQS and SNS are services that are cloud-native services.

3
00:00:07,160 --> 00:00:10,950
They're using protocols that are proprietary to AWS,

4
00:00:10,950 --> 00:00:14,010
and so therefore there are not standards in the markets.

5
00:00:14,010 --> 00:00:15,960
But they are traditional applications

6
00:00:15,960 --> 00:00:17,830
that are going to be running on-premises,

7
00:00:17,830 --> 00:00:19,460
they're going to use open protocols,

8
00:00:19,460 --> 00:00:24,460
such as the MQTT, AMQP, STOMP, Openwire or WSS.

9
00:00:24,800 --> 00:00:26,210
And these are more like standard protocols

10
00:00:26,210 --> 00:00:30,040
that were developed before even AWS existed.

11
00:00:30,040 --> 00:00:32,060
And so when you migrate an application

12
00:00:32,060 --> 00:00:34,190
from on-premises to the cloud,

13
00:00:34,190 --> 00:00:36,370
instead of re-engineering everything

14
00:00:36,370 --> 00:00:38,550
for the applications you use SQS and SNS,

15
00:00:38,550 --> 00:00:41,490
sometimes you just want to move your message queue

16
00:00:41,490 --> 00:00:42,610
into the cloud.

17
00:00:42,610 --> 00:00:45,190
And for that, we can use Amazon MQ.

18
00:00:45,190 --> 00:00:49,600
So Amazon MQ is to get to manage Apache ActiveMQ

19
00:00:49,600 --> 00:00:50,660
in the cloud.

20
00:00:50,660 --> 00:00:53,550
So it doesn't scale as much as SQS or SNS

21
00:00:53,550 --> 00:00:54,550
because it is provisioned.

22
00:00:54,550 --> 00:00:56,410
It runs on a dedicated machine,

23
00:00:56,410 --> 00:00:59,420
and you can have a setup for high availability with failover

24
00:00:59,420 --> 00:01:01,350
as I will show you in the next slide.

25
00:01:01,350 --> 00:01:05,510
Amazon MQ has both the queue features like SQS

26
00:01:05,510 --> 00:01:08,490
and the topic features like SNS, okay.

27
00:01:08,490 --> 00:01:09,970
So what I want you remember from this

28
00:01:09,970 --> 00:01:12,040
is that if the exam is asking you

29
00:01:12,040 --> 00:01:15,290
to migrate an application from on-premises to the cloud

30
00:01:15,290 --> 00:01:17,130
without rearchitecting it,

31
00:01:17,130 --> 00:01:19,270
and that application is using some standard protocols

32
00:01:19,270 --> 00:01:21,430
such as MQTT or MQP,

33
00:01:21,430 --> 00:01:24,290
then Amazon MQ is going to be the answer.

34
00:01:24,290 --> 00:01:28,060
Now, how does the high availability work for Amazon MQ?

35
00:01:28,060 --> 00:01:30,760
Well, for example, let's say we have a region us-east-1,

36
00:01:30,760 --> 00:01:32,580
and we have two Availability Zones,

37
00:01:32,580 --> 00:01:35,110
us-east-1a and us-east-1b.

38
00:01:35,110 --> 00:01:36,470
One zone is going to be active

39
00:01:36,470 --> 00:01:38,240
and the other one's going to be a standby.

40
00:01:38,240 --> 00:01:42,530
So we're going to have an Amazon MQ broker in both AZ, okay,

41
00:01:42,530 --> 00:01:44,600
but one is active and one is standby.

42
00:01:44,600 --> 00:01:46,530
And so for the failover to work

43
00:01:46,530 --> 00:01:50,170
you need to define Amazon EFS as your backend storage.

44
00:01:50,170 --> 00:01:53,550
And we've seen that EFS is a network file system

45
00:01:53,550 --> 00:01:57,580
which can be mounted on to multiple Availability Zones.

46
00:01:57,580 --> 00:01:58,413
So what happens

47
00:01:58,413 --> 00:02:00,870
is that whenever you have failover happening,

48
00:02:00,870 --> 00:02:03,540
well the standby is going to be also mounted

49
00:02:03,540 --> 00:02:06,540
onto Amazon EFS, and therefore will have the same data

50
00:02:06,540 --> 00:02:08,259
as your first active queue

51
00:02:08,259 --> 00:02:10,630
and therefore the failover can happen correctly.

52
00:02:10,630 --> 00:02:15,080
So if your clients talks to the Amazon MQ broker, okay,

53
00:02:15,080 --> 00:02:16,720
and there is a failover happening,

54
00:02:16,720 --> 00:02:20,960
then the data will be kept safe, thanks to Amazon EFS.

55
00:02:20,960 --> 00:02:21,793
And that's it.

56
00:02:21,793 --> 00:02:23,810
That's all you need to remember for going into the exam.

57
00:02:23,810 --> 00:02:26,703
I hope you liked it, and I will see you in the next lecture.

