CLOUD LABS
Build a Fanout Serverless Architecture using SNS, SQS, and Lambda
In this Cloud Lab, you’ll learn how the fanout architecture works by creating an SNS topic and adding multiple SQS queues to it. You’ll then invoke Lambda functions using Amazon SQS.
intermediate
Certificate of Completion
Learning Objectives
Amazon SNS is a serverless service that allows you to send and receive notifications. It uses the publish/subscribe model, where messages can be published to a topic and sent to all subscribers.
In a fanout architecture, any message published on an SNS topic is replicated and sent to multiple subscriber endpoints, which allows parallel asynchronous processing. This means a single message can be sent to different endpoints, such as SQS queues and Lambda functions, where it will be used for further processing.
In this Cloud Lab, you’ll see how the fanout architecture works in Amazon SNS. To do this, you’ll first create a topic using Amazon SNS and then create two Amazon SQS queues. You’ll add these queues as subscribers to your topic. After this, you’ll create two Lambda functions that will be invoked when your queues receive messages from the SNS topic. Finally, you’ll view your functions’ metrics in CloudWatch.
After completing this Cloud Lab, you’ll have a thorough understanding of the fanout architecture in Amazon SNS and will be able to filter the messages sent by it.
The following is the high-level architecture diagram of the infrastructure you’ll create in this Cloud Lab:
Trusted by 1.4 million developers working at companies including
Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.
![TestimonialsImg](/static/imgs/FelipeMatheus.png)
I highly recommend Educative. The courses are well organized and easy to understand.
![TestimonialsImg](/static/imgs/AdinaOng.png)
I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.
![TestimonialsImg](/static/imgs/CliffordFajardo.png)
I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.
![TestimonialsImg](/static/imgs/CliffordFajardo.png)
Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.
![TestimonialsImg](/static/imgs/FelipeMatheus.png)
I highly recommend Educative. The courses are well organized and easy to understand.
![TestimonialsImg](/static/imgs/AdinaOng.png)
I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.
![TestimonialsImg](/static/imgs/CliffordFajardo.png)
Get access to Educative Cloud Labs