Building Serverless Applications with Python
β Scribed by Jalem Raj Rohit
- Publisher
- Packt Publishing
- Year
- 2018
- Tongue
- English
- Leaves
- 266
- Category
- Library
No coin nor oath required. For personal study only.
β¦ Synopsis
Building efficient Python applications at minimal cost by adopting serverless architectures
About This Book
- Design and set up a data flow between cloud services and custom business logic
- Make your applications efficient and reliable using serverless architecture
- Build and deploy scalable serverless Python APIs
Who This Book Is For
This book is for Python developers who would like to learn about serverless architecture. Python programming knowledge is assumed.
What You Will Learn
- Understand how AWS Lambda and Microsoft Azure Functions work and use them to create an application
- Explore various triggers and how to select them, based on the problem statement
- Build deployment packages for Lambda functions
- Master the finer details about building Lambda functions and versioning
- Log and monitor serverless applications
- Learn about security in AWS and Lambda functions
- Scale up serverless applications to handle huge workloads and serverless distributed systems in production
- Understand SAM model deployment in AWS Lambda
In Detail
Serverless architectures allow you to build and run applications and services without having to manage the infrastructure. Many companies have adopted this architecture to save cost and improve scalability. This book will help you design serverless architectures for your applications with AWS and Python.
The book is divided into three modules. The first module explains the fundamentals of serverless architecture and how AWS lambda functions work. In the next module, you will learn to build, release, and deploy your application to production. You will also learn to log and test your application. In the third module, we will take you through advanced topics such as building a serverless API for your application. You will also learn to troubleshoot and monitor your app and master AWS lambda programming concepts with API references. Moving on, you will also learn how to scale up serverless applications and handle distributed serverless systems in production.
By the end of the book, you will be equipped with the knowledge required to build scalable and cost-efficient Python applications with a serverless framework.
Style and approach
The book takes a pragmatic approach, using a real-world example to demonstrate building efficient, secure, and scalable serverless applications.
Downloading the example code for this book You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
β¦ Table of Contents
Cover
Title Page
Copyright and Credits
Packt Upsell
Contributors
Table of Contents
Preface
Chapter 1: The Serverless Paradigm
Understanding serverless architectures
Understanding microservices
Serverless architectures don't have to be real-time only
Pros and cons of serverless
Summary
Chapter 2: Building a Serverless Application in AWS
Triggers in AWS Lambda
Lambda functions
Functions as containers
Configuring functions
Testing Lambda functions
Versioning Lambda functions
Creating deployment packages
Summary
Chapter 3: Setting Up Serverless Architectures
S3 trigger
SNS trigger
SQSΒ trigger
CloudWatch trigger
Summary
Chapter 4: Deploying Serverless APIs
API methods and resources
Setting up integration
Deploying the Lambda function for API execution
Handling authentication and user controls
Summary
Chapter 5: Logging and Monitoring
Understanding CloudWatch
Understanding CloudTrailΒ
Lambdaβs metrics in CloudWatch
Lambda's logs in CloudWatch
Logging statements in Lambda
Summary
Chapter 6: Scaling Up Serverless Architectures
Third-party orchestration tools
The creation and termination of servers
Security best practices
Identifying and handling difficulties in scaling
Summary
Chapter 7: Security in AWS Lambda
UnderstandingΒ AWS Virtual Private Clouds (VPCs)
Understanding subnets in VPCs
Securing Lambda inside private subnets
Controlling access to Lambda functions
Using STS inside Lambda for secure session-based execution
Summary
Chapter 8: Deploying a Lambda Function with SAM
Introduction to SAM
CloudFormation for serverless services
Deploying with SAM
Understanding security in SAM
Summary
Chapter 9: Introduction to Microsoft Azure Functions
Introduction to Microsoft Azure Functions
Creating your first Azure Function
Understanding triggers
Understanding logging and monitoring in Azures Functions
Best practices for writing Azure Functions
Summary
Other Books You May Enjoy
Index
β¦ Subjects
Python
π SIMILAR VOLUMES
<p><b>Master serverless architectures in Python and their implementation, with Zappa on three different frameworks.</b></p><h4>Key Features</h4><ul><li> Scalable serverless Python web services using Django, Flask, and Pyramid.</li><li> Learn Asynchronous task execution on AWS Lambda and scheduling u
Master serverless architectures in Python and their implementation, with Zappa on three different frameworks. Key Features Scalable serverless Python web services using Django, Flask, and Pyramid. Learn Asynchronous task execution on AWS Lambda and scheduling using Zappa. Implementing Zappa in a Doc
Serverless architectures allow you to build and run applications and services without having to manage the infrastructure. Many companies have adopted this architecture to save cost and improve scalability. This book will help you design serverless architectures for your applications with AWS and Py