Book Image

Azure Serverless Computing Cookbook - Second Edition

By : Praveen Kumar Sreeram, Jason Marston
Book Image

Azure Serverless Computing Cookbook - Second Edition

By: Praveen Kumar Sreeram, Jason Marston

Overview of this book

Microsoft provides a solution for easily running small segments of code in the cloud with Azure Functions. The second edition of Azure Serverless Computing Cookbook starts with intermediate-level recipes on serverless computing along with some use cases demonstrating the benefits and key features of Azure Functions. You’ll explore the core aspects of Azure Functions, such as the services it provides, how you can develop and write Azure Functions, and how to monitor and troubleshoot them. As you make your way through the chapters, you’ll get practical recipes on integrating DevOps with Azure Functions, and providing continuous integration and continuous deployment with Azure DevOps. This book also provides hands-on, step-by-step tutorials based on real-world serverless use cases to guide you through configuring and setting up your serverless environments with ease. You will also learn how to build solutions for complex, real-world, workflow-based scenarios quickly and with minimal code using Durable Functions. In the concluding chapters, you will ensure enterprise-level security within your serverless environment. The most common tips and tricks that you need to be aware of when working with Azure Functions on production environments will also be covered in this book. By the end of this book, you will have all the skills required for working with serverless code architecture, providing continuous delivery to your users.
Table of Contents (13 chapters)

Testing and validating Azure Function responsiveness using Application Insights

Any application is only useful for any business if it is up and running. Applications might go down for multiple reasons; the following are a few of them:

  • They could go down from any hardware failures, such as a server crash, bad hard disk, or any other hardware issue—even an entire data center might go down, although this would be very rare.
  • There might be software errors because of bad code or a deployment error.
  • The site might receive unexpected traffic and the servers may not be capable of handling this traffic.
  • There might be cases where your application is accessible from one country, but not from others.

It would be really helpful to get a notification when our site is not available or not responding to user requests. Azure provides a few tools to help by alerting us if the website...