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)

Logging and Monitoring

We have learned about the concepts of serverless architectures and understood the basics and the internals of AWS's serverless service, AWS Lambda. We have also created some example serverless projects to understand the concepts better. During the course of our learning, we have also learned the basics of several other AWS services, such as alarms, SNS, SQS, S3 buckets, and CloudWatch.

In this chapter, we will learn about how to do the logging and monitoring for the serverless systems that we are building. Logging and monitoring software code and systems are very important, as they helps us with the telemetry and disaster recovery. Logging is a process where we store the logs emitted by our code or by our architecture as a whole. Monitoring is a process where we closely monitor the activities, status, and health of the components and processes in our...