Book Image

Beginning Serverless Architectures with Microsoft Azure

By : Daniel Bass
Book Image

Beginning Serverless Architectures with Microsoft Azure

By: Daniel Bass

Overview of this book

Many businesses are rapidly adopting a microservices-first approach to development, driven by the availability of new commercial services like Azure Functions and AWS Lambda. In this book, we’ll show you how to quickly get up and running with your own serverless development on Microsoft Azure. We start by working through a single function, and work towards integration with other Azure services like App Insights and Cosmos DB to handle common user requirements like analytics and highly performant distributed storage. We finish up by providing you with the context you need to get started on a larger project of your own choosing, leaving you equipped with everything you need to migrate to a cloud-first serverless solution.
Table of Contents (5 chapters)

Logging with Application Insights

One of the most important operational requirements for software is that your company understand what the application is doing and can triage responses to errors. This is generally achieved via some form of logging, and there is a service in Azure for this, called Application Insights. It's a very sophisticated application health monitoring tool that combines out-of-the-box monitoring, like processor loads, RAM usage, and errors, with specific logging that the developer has to implement. While Azure Functions don't really have concerns with processor loads or RAM usage, it useful to know the average length of calls, how many instances are being spun up, and hourly spend.

In the next example, you will add Azure Application Insights integration to your previous two functions, to enable effective support.

...