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

Understanding Docker


Docker is a platform for developing and deploying applications with containers. Docker creates these containers based on Docker images, and a Docker image includes the basic and required components similar to Linux. A Docker container is nothing more than an instance of a Docker image. 

A Docker container has many features for supporting and running any application. A Docker container is lightweight, flexible, portable, scalable, and stackable. You can create a container for any service, such as Python or MySQL. Docker enables you to share data by networking with the host machine. With the help of Docker containers, you can create an isolated environment for your application.

You can create your own Docker image with stacked services and configurations. For example, you might use an Ubuntu image-based container and then install the MySQL service before configuring the container accordingly. Then we can build a new image along with the configured service. Finally, we can...