Book Image

Mastering Azure Serverless Computing

By : Lorenzo Barbieri, Massimo Bonanni
Book Image

Mastering Azure Serverless Computing

By: Lorenzo Barbieri, Massimo Bonanni

Overview of this book

Application development has evolved from traditional monolithic app development to using serverless options and microservices. This book is designed to guide you through using Microsoft's Azure Functions to process data, integrate systems, and build simple APIs and microservices. You will discover how to apply serverless computing to speed up deployment and reduce downtime. You'll also explore Azure Functions, including its core functionalities and essential tools, along with understanding how to debug and even customize Azure Functions. In addition to this, the book will take you through how you can effectively implement DevOps and automation in your working environment. Toward the concluding chapters, you'll cover some quick tips, troubleshooting techniques, and real-world serverless use cases that will help you make the most of serverless computing. By the end of this book, you will have gained the skills you need to develop and deliver cost-effective Azure serverless solutions.
Table of Contents (19 chapters)
Free Chapter
1
Section 1: Azure Functions 2.0 Fundamentals
5
Section 2: Azure Functions 2.0 Deployment and Automation
10
Section 3: Serverless Orchestration, API Management, and Event Processing
15
Section 4: Real-World Serverless Use Cases

Testing your Azure Functions

Debugging your functions is not enough to guarantee that your code reacts appropriately to all the possible scenarios in which it is involved. Furthermore, you cannot automatically repeat the debug procedures every time part of your code changes.

Unit testing helps you. You can run your code automatically and consistently in a manner, covering all possible scenarios that your code might encounter.

Before we look at how to implement unit tests for your functions, it is important to clarify some definitions about unit testing.

Unit testing is a particular type of test where individual units/components of your code are tested. The purpose of the unit test is to validate that the behavior of a component is exactly the behavior of your design.

Unit testing is the first type of test that you execute in the software development pipeline, and, generally...