Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Serverless Applications with Python

You're reading from   Building Serverless Applications with Python Develop fast, scalable, and cost-effective web applications that are always available

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher
ISBN-13 9781787288676
Length 272 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Jalem Raj Rohit Jalem Raj Rohit
Author Profile Icon Jalem Raj Rohit
Jalem Raj Rohit
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. The Serverless Paradigm FREE CHAPTER 2. Building a Serverless Application in AWS 3. Setting Up Serverless Architectures 4. Deploying Serverless APIs 5. Logging and Monitoring 6. Scaling Up Serverless Architectures 7. Security in AWS Lambda 8. Deploying a Lambda Function with SAM 9. Introduction to Microsoft Azure Functions 10. Other Books You May Enjoy

SQS trigger

The AWS Simple Queue Service (SQS) is the AWS queue service. This service is similar to the queuing mechanisms that are used generally in software engineering. This enables us to add, store, and remove messages inside the queue.

We will learn how to trigger a Lambda function, depending on the number of messages in a SQS queue. This task will help you understand how serverless batch data architectures can be built and how to build one yourself.

We will do this by monitoring our SQS queue with a CloudWatch alarm and relaying the information to Lambda via an SNS topic, just like we did in the previous task.

So, in this section, we will do the following:

  1. Create an SQS queue
  2. Create an SNS topic
  3. Create a CloudWatch alarm for our SQS queue to monitor the number of messages in the queue
  4. Once the messages count reaches 5, the alarm will be set to ALERT and the corresponding...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime