My Account Log in

3 options

Building serverless Python web services with Zappa : build and deploy serverless applications on AWS using Zappa / Abdulwahid Abdulhaque Barguzar.

EBSCOhost Academic eBook Collection (North America) Available online

View online

Ebook Central Academic Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Barguzar, Abdulwahid Abdulhaque, author.
Language:
English
Subjects (All):
Amazon Web Services (Firm).
Application software--Development.
Application software.
Cloud computing.
Physical Description:
1 online resource (324 pages)
Edition:
First edition
Place of Publication:
Birmingham : Packt, 2018.
System Details:
text file
Summary:
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 Docker container. Book Description Serverless applications are becoming very popular these days, not just because they save developers the trouble of managing the servers, but also because they provide several other benefits such as cutting heavy costs and improving the overall performance of the application. This book will help you build serverless applications in a quick and efficient way. We begin with an introduction to AWS and the API gateway, the environment for serverless development, and Zappa. We then look at building, testing, and deploying apps in AWS with three different frameworks--Flask, Django, and Pyramid. Setting up a custom domain along with SSL certificates and configuring them with Zappa is also covered. A few advanced Zappa settings are also covered along with securing Zappa with AWS VPC. By the end of the book you will have mastered using three frameworks to build robust and cost-efficient serverless apps in Python. What you will learn Build, test, and deploy a simple web service using AWS CLI Integrate Flask-based Python applications, via AWS CLI configuration Design Rest APIs integrated with Zappa for Flask and Django Create a project in the Pyramid framework and configure it with Zappa Generate SSL Certificates using Amazon Certificate Manager Configure custom domains with AWS Route 53 Create a Docker container similar to AWS Lambda Who this book is for Python Developers who are interested in learning how to develop fast and highly scalable serverless applications in Python, will find this book useful
Contents:
Cover
Title Page
Copyright and Credits
Dedication
Packt Upsell
Contributors
Table of Contents
Preface
Chapter 1: Amazon Web Services for Serverless
Technical requirements
Transitioning from traditional server to serverless
Getting started with AWS Lambda
How AWS Lambda works
Configuration
Function code
Environment variables
Tags
Execution role
Basic settings
Network
Debugging and error handling
Monitoring
Executing the Lambda function
Creating Lambda triggers
Serverless RESTful API
AWS Lambda interaction with theAWS CLI
Installing the AWS CLI
Configuring the AWS CLI
Configuring Lambda function with the AWS CLI
Creating a Lambda function
Invoking the function
Create-event-source-mapping
Summary
Questions
Chapter 2: Getting Started with Zappa
Hardware
Software
What is Zappa?
Installing and configuring Zappa
Building, testing, and deploying a Python web service using Zappa
Building the deployment package
What do you call this environment? (default dev)
What do you want to call your bucket? (default zappa-2o2zd8dg4)
What's your modular path to your app function? (default dev)
Would you like to deploy the application globally? (default n)
The zappa_settings.json file
Deploying and testing hello world
Basic uses
Initial deployments
Update
Status
Tailing logs
Rollback
Undeploy
Package
Chapter 3: Building a Flask Application with Zappa
What is Flask?
Installing Flask
A minimal Flask application
Configuring with Zappa
Building, testing, and deploying on AWS Lambda
A complete Flask Todo application
Prerequisite
Virtualenv
Flask extensions
Scaffolding
Base model.
Authentication
Blueprint
Models
Forms
Views
Templates
Todo
Model
CREATE
RETRIEVE
UPDATE
DELETE
FLASK_APP
Deployment
Chapter 4: Building a Flask-Based REST API with Zappa
Installing and configuring Flask
Flask-JWT
Learning about JWT
Flask-RESTful
Begining with REST
Designing the REST API
Configuring the application settings
Implementing authentication
Implementing the todo API
Building, testing, and deploying the REST API using Zappa
Configuring Zappa
Initiating deployment using Zappa
Demonstrating the deployed application
Sign up API
Login API
Todo API
Todo API without authorization
Todo API with the authorization header
Chapter 5: Building a Django Application with Zappa
Installing and configuring Django
Setting up a virtual environment
Installing pipenv
Configuring and installing packages
Designing an image gallery application
Design overview
Initializing the project
Implementing models
Integrating with the admin panel
Application demonstration
Configuring the Amazon CloudFront CDN
Creating CloudFront distributions
Setting up static and media files
Standard configuration
django-storage
Building, testing, and deploying the Django application using Zappa
Building and deploying
Django management command using Zappa
Chapter 6: Building a Django REST API with Zappa
Installing and configuring the Django REST Framework
Installing the required packages
Designing REST APIs
What is the Django Rest Framework?
Integrating the REST Framework.
Implementing authentication and authorization
Configuring django-rest-framework-jwt
Implementing serializers
Implementing viewsets
Configuring the URL routes
Building, testing, and deploying Django app using Zappa
Executing in the local environment
API authentication
GET request on API "/albums/
POST request on API "/albums/&lt
album_id&gt
/photos/
Executing in the production environment
Authentication API
GET request on API /albums/
Chapter 7: Building a Falcon Application with Zappa
Installing and configuring Falcon
Setting up the virtual environment
Installing required packages
What is Falcon?
What is Peewee?
Designing Falcon APIs
Scaffolding the application
Designing the model class
Mashape API integration
Creating API resources
Building, testing, and deploying Falcon APIs using Zappa
Local execution using gunicorn
API for the daily quote
API of the random quote
Zappa initialization
Zappa deployment
Daily quote API execution
Random quote API execution
Enabling caching on the API Gateway
Event scheduling
Configuring events using Zappa
Scheduling an event to set the quote of the day
Chapter 8: Custom Domain with SSL
Configuring custom domain with AWS Route 53
What is AWS Route 53?
Changing nameservers to Route 53
Generating SSL certificates using AWS Certificate Manager
What is SSL?
What are SSL certificates?
Generating SSL certificate using Amazon Certificate Manager (ACM)
Integrating custom domain using Zappa
Deploying to a domain with ACM certificate.
Application execution with the configured domain
Daily quote API
Random quote API
Chapter 9: Asynchronous Task Execution on AWS Lambda
Asynchronous execution
Understanding asynchronous execution
Asynchronous AWS Lambda execution using Boto3
AWS Lambda asynchronous invocation using Zappa
Asynchronous AWS Lambda invocation using the task decorator
Amazon SNS as the task source
Direct invocation
Remote invocation
Configuring the Quote API application with async features
SMS subscription with Amazon SNS for the daily quote
Configuring Amazon SNS using Boto3
Implementing the SMS subscription functionality
Deploying and executing the Quote API using Zappa
Setting up environment variables
Adding a custom domain with SSL
Scheduling an event to publish an SMS
Quote API execution
The daily quote API
Daily quote SMS subscription
Daily quote SMS unsubscription
Chapter 10: Advanced Zappa Settings
Keeping the server warm
Enabling CORS
Handling larger projects
Handling larger projects using the AWS Lambda console
Handling larger projects using Zappa
Enabling bash tab compilation
Catching unhandled exceptions
Chapter 11: Securing Serverless Applications with Zappa
Implementing a random quote API
Prerequisites
Developing the random quote API
Deploying with Zappa
Executing the API
Enabling secure endpoints on API Gateway
Enabling the API Key
Executing the API with the API key header
IAM policy
API Gateway Lambda authorizer
Tracing AWS Lambda failure with dead letter queues
Manual DLQ configuration
Automating DLQ configuration with Zappa.
Raising exceptions in the asynchronous Lambda function
Analyzing the Zappa application with AWS X-Ray
X-Ray manual integration with AWS Lambda
Zappa configuration to enable AWS X-Ray support
Securing your Zappa application using AWS VPC
Manual configuration of VPC
VPC configuration using Zappa
Chapter 12: Zappa with Docker
Understanding Docker
Problem statement
Proposed solution
Case study for this solution
API development with a custom tool dependency
Implementing the /doc-parser API
Building, testing, and deploying with Docker
Building without Docker
Configuring Docker with Zappa
Executing the API on AWS Lambda
Assessments
Other Books You May Enjoy
Index.
Notes:
Description based on print version record.
OCLC:
1050953359

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account