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)

Understanding triggers

In this section, we will look at how triggers work in Azures Function applications. We will also learn about the different types of triggers and their purpose. Perform the following steps:

  1. In the left menu, click on the (+) symbol beside the Functions option for adding, removing, or editing a trigger:
  1. You will be taken to the function creation console, which looks like this:
  1. Azure does not have a lot of support for Python. So, in this console, let's choose a custom function of our own. Click on Custom function under the Get Started on your own option at the bottom:
  1. In the function creation wizard, enable the Experimental Language option in the right menu. Now, you will be able to see the Python option in the available languages:
  1. There are two triggers that are available for the Python language. One is the HTTP trigger and the other is the...