So now let's talk about Amazon MQ.
So SQS and SNS are services that are cloud-native services.
They're using protocols that are proprietary to AWS,
and so therefore there are not standards in the markets.
But they are traditional applications
that are going to be running on-premises,
they're going to use open protocols,
such as the MQTT, AMQP, STOMP, Openwire or WSS.
And these are more like standard protocols
that were developed before even AWS existed.
And so when you migrate an application
from on-premises to the cloud,
instead of re-engineering everything
for the applications you use SQS and SNS,
sometimes you just want to move your message queue
into the cloud.
And for that, we can use Amazon MQ.
So Amazon MQ is to get to manage Apache ActiveMQ
in the cloud.
So it doesn't scale as much as SQS or SNS
because it is provisioned.
It runs on a dedicated machine,
and you can have a setup for high availability with failover
as I will show you in the next slide.
Amazon MQ has both the queue features like SQS
and the topic features like SNS, okay.
So what I want you remember from this
is that if the exam is asking you
to migrate an application from on-premises to the cloud
without rearchitecting it,
and that application is using some standard protocols
such as MQTT or MQP,
then Amazon MQ is going to be the answer.
Now, how does the high availability work for Amazon MQ?
Well, for example, let's say we have a region us-east-1,
and we have two Availability Zones,
us-east-1a and us-east-1b.
One zone is going to be active
and the other one's going to be a standby.
So we're going to have an Amazon MQ broker in both AZ, okay,
but one is active and one is standby.
And so for the failover to work
you need to define Amazon EFS as your backend storage.
And we've seen that EFS is a network file system
which can be mounted on to multiple Availability Zones.
So what happens
is that whenever you have failover happening,
well the standby is going to be also mounted
onto Amazon EFS, and therefore will have the same data
as your first active queue
and therefore the failover can happen correctly.
So if your clients talks to the Amazon MQ broker, okay,
and there is a failover happening,
then the data will be kept safe, thanks to Amazon EFS.
And that's it.
That's all you need to remember for going into the exam.
I hope you liked it, and I will see you in the next lecture.