Book Image

Building Serverless Applications with Python

Book Image

Building Serverless Applications with Python

Overview of this book

Serverless architectures allow you to build and run applications and services without having to manage the infrastructure. Many companies have adopted this architecture to save cost and improve scalability. This book will help you design serverless architectures for your applications with AWS and Python. The book is divided into three modules. The first module explains the fundamentals of serverless architecture and how AWS lambda functions work. In the next module, you will learn to build, release, and deploy your application to production. You will also learn to log and test your application. In the third module, we will take you through advanced topics such as building a serverless API for your application. You will also learn to troubleshoot and monitor your app and master AWS lambda programming concepts with API references. Moving on, you will also learn how to scale up serverless applications and handle distributed serverless systems in production. By the end of the book, you will be equipped with the knowledge required to build scalable and cost-efficient Python applications with a serverless framework.
Table of Contents (11 chapters)

API methods and resources

In this section, we will be learning about the API service of AWS, which is the API Gateway, and understanding the components and settings available in the console for the user who is creating APIs. We will go through all of the components and understand the API Gateway better. The steps to create the serverless APIs are as follows:

  1. We will start by opening the API Gateway console, which looks like this:
  1. In the API Gateway console, click on the Get Started button to start creating an API. It will take you to an API creation wizard with a popup saying Create Example API:
  1. Once you click on the OK button, you will be redirected to a page where the Example API is shown, from which you can get an idea of what an API response looks like:

The API we are building in this example is for a pet store and for maintaining the pets inside the store. By going...