Book Image

Building Serverless Microservices in Python

By : Richard Takashi Freeman
Book Image

Building Serverless Microservices in Python

By: Richard Takashi Freeman

Overview of this book

Over the last few years, there has been a massive shift from monolithic architecture to microservices, thanks to their small and independent deployments that allow increased flexibility and agile delivery. Traditionally, virtual machines and containers were the principal mediums for deploying microservices, but they involved a lot of operational effort, configuration, and maintenance. More recently, serverless computing has gained popularity due to its built-in autoscaling abilities, reduced operational costs, and increased productivity. Building Serverless Microservices in Python begins by introducing you to serverless microservice structures. You will then learn how to create your first serverless data API and test your microservice. Moving on, you'll delve into data management and work with serverless patterns. Finally, the book introduces you to the importance of securing microservices. By the end of the book, you will have gained the skills you need to combine microservices with serverless computing, making their deployment much easier thanks to the cloud provider managing the servers and capacity planning.
Table of Contents (13 chapters)
Title Page


You now have a much deeper understanding and some practical experience of manually deploying your serverless stack in a repeatable and consistent way using infrastructure-as-code principles. You can adapt these for your organization's serverless microservice needs. You know the service deployment options and you used the AWS CLI to create a bucket, IAM roles, and IAM policies, as well as the AWS SAM to deploy the API Gateway, Lambda, and DynamoDB. You also saw how you can easily modify the SAM template file to propagate changes throughout the stack. The full Python source code, IAM policies, roles, Linux, and shell scripts are provided with this book so you can adapt it for your needs. You can now take advantage of them without having to use the AWS management console GUI manually, and only need to modify the scripts when deploying other serverless microservices.