Book Image

Building Serverless Python Web Services with Zappa

By : Abdulwahid Abdulhaque Barguzar
Book Image

Building Serverless Python Web Services with Zappa

By: Abdulwahid Abdulhaque Barguzar

Overview of this book

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.
Table of Contents (20 chapters)
Title Page
Dedication
Packt Upsell
Contributors
Preface
Index

Technical requirements


Before moving ahead, let's ensure we fulfill the technical requirements. The following subsections will go over the hardware and software requirements for this chapter.

Hardware

For demonstration purposes, we used a basic configured machine with the following specification:

  • Memory—16GB
  • Processor—Intel Core i5
  • CPU—2.30GHz x 4
  • Graphics—Intel HD Graphics 520

 

 

Software

The following are the software specifications:

  • OS—Ubuntu 16.04 LTS
  • OS-Type—64 bit
  • Python 3.6
  • Python development packages: build-essentialpython-dev, and python-virtualenv
  • AWS credentials and AWS CLI
  • Zappa 

We will go over a detailed description for setting up the environment in the upcoming sections. In the meantime, you can configure essential packages such as python3.6 and awscli.