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

What this book covers

Chapter 1, Serverless Microservice Architectures and Patterns, provides an overview of monolithic and microservice architectures. You will learn about design patterns and principles and how they relate to serverless microservices.

Chapter 2, Creating Your First Serverless Data API, discusses security and its importance. We will discuss IAM roles and get an overview of the policies and some of the security concepts and principles involved in securing your serverless microservices, specifically regarding Lambda, API Gateway, and DynamoDB.

Chapter 3, Deploying Your Serverless Stack, shows you how to deploy all that infrastructure using only code and configuration. You will learn about different deployment options.

Chapter 4, Testing Your Serverless Microservice, covers the concept of testing. We will explore many types of testing, from unit tests with mocks, integration testing with Lambda and API Gateway, debugging a Lambda locally, and making a local endpoint available, to load testing.

Chapter 5, Securing Your Microservice, covers important topics on how to make your microservices secure.