Building Serverless Python Web Services with Zappa
Copyright 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Aaron Lazar
Acquisition Editor: Karan Sadawana
Content Development Editor: Akshada Iyer
Technical Editor: Adhithya Haridas
Copy Editor: Safis Editing
Project Coordinator: Prajakta Naik
Proofreader: Safis Editing
Indexer: Rekha Nair
Graphics: Jisha Chirayil
Production Coordinator: Deepika Naik
First published: July 2018
Production reference: 1280718
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78883-761-3
www.packtpub.com
To my mother, Kadiza , and my father, Abdulhaque , for their sacrifices and restless dedication.
I pray to my Lord , "B estow on them thy mercy even as they cherished me in childhood."
To my wife, Samreen , for being my loving partner and a best friend throughout our joint life journey.
To my son, Abdulahad , and my daughter Aminah , for their unconditional love and for giving me a joyful life.
To my cousin, Sufiyan , for his support and motivation.
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
PacktPub.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the author
Abdulwahid Abdulhaque Barguzar is a software architect and an active contributor in the open source community. He has developed a deep understanding of architecting software product development through Python web frameworks and JavaScript frameworks.
He is passionate about implementing and mastering new technologies. In his free time, he researches innovative approaches to rapidly developing and designing a software product and automation testing, aiming to become a master software architect.
About the reviewer
Bhagvan Kommadi has around 18 years of experience in the software industry and has done master's in industrial systems engineering at Georgia Institute of Technology and bachelor's in aerospace engineering from IIT, Madras. He is currently working as Chief Technology Officer of Crystal Delta Solutions, based in Chennai. He has reviewed Beyond Software Architecture: Creating and Sustaining Winning Solutions by Luke Hohmann and Algorithms of the Intelligent Web by Dr. Haralambos Marmanis.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Preface
This book is based on the modern way of developing a serverless Python-based web or microservices. Being serverless involves a serverless infrastructure provided by the cloud service provider. This book shows how to use Amazon Web Services to implement the serverless infrastructure. Also, it covers the deployment process using Zappa. Zappa eliminates manual intervention, gives you an automated way to proceed deployment, and helps you maintain multiple deployment stages.
Who this book is for
This book is for beginner to experienced Python developers who want to understand the way to develop Python web services or microservices on the serverless infrastructure. Experienced Python developers can enhance their skills by learning about the serverless technology and understanding serverless deployment.
What this book covers
, Amazon Web Services for Serverless , covers understanding the basics of AWS Lambda and API Gateway services. Also, the manual process of creating a serverless service by interacting with the AWS console and CLI tool is covered.
, Getting Started with Zappa , explains the concept of the Zappa tool and elaborates the benefits of using Zappa over the manual process of AWS services.
, Building a Flask Application with Zappa , explores basic Flask application development and deployment using Zappa as a serverless application.
, Building a Flask-Based REST API with Zappa , presents the Flask-based RESTful API development and deployment process with Zappa.
, Building a Django Application with Zappa , discusses Django core application development and deploying the application as a serverless over AWS Lambda using Zappa.