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)

What this book covers

Chapter 1, Developing Cloud Applications Using Function Triggers and Bindings, goes through how the Azure Functions runtime provides templates that can be used to quickly integrate different Azure services for your application needs. It reduces all of the plumbing code so that you can focus on just your application logic. In this chapter, you will learn how to build web APIs and bindings related to Azure Storage Services.

Chapter 2, Working with Notifications Using the SendGrid and Twilio Services, deals with how communication is one of the most critical aspects of any business requirement. In this chapter, you will learn how easy it is to connect your business requirements written in Azure Functions with the most popular communication services, such as SendGrid (for email) and Twilio (for SMS).

Chapter 3, Seamless Integration of Azure Functions with Azure Services, discusses how Azure provides many connectors that you could leverage to integrate your business applications with other systems pretty easily. In this chapter, you will learn how to integrate Azure Functions with cognitive services and Logic Apps.

Chapter 4, Understanding the Integrated Developer Experience of Visual Studio Tools for Azure Functions, teaches you how to develop Azure Functions using Visual Studio, which provides many features, such as IntelliSense, local and remote debugging, and most of the regular development features.

Chapter 5, Exploring Testing Tools for the Validation of Azure Functions, helps you to understand different tools and processes that help you streamline your development and quality control processes. You will also learn how to create loads using Azure DevOps (formerly VSTS) load testing, and you'll look at how to monitor the performance of Azure Functions using the reports provided by Application Insights. Finally, you will also learn how to configure alerts that notify you when your apps are not responsive.

Chapter 6, Monitoring and Troubleshooting Azure Serverless Services, teaches you how to continuously monitor applications, analyze the performance, and review the logs to understand whether there are any issues that end users are facing. Azure provides us with multiple tools to achieve all the monitoring requirements, right from the development and maintenance stages of the application.

Chapter 7, Developing Reliable Serverless Applications Using Durable Functions, shows you how to develop long-running, stateful solutions in serverless environments using Durable Functions, which has advanced features that have been released as an extension to Azure Functions.

Chapter 8, Bulk Import of Data Using Azure Durable Functions and Cosmos DB, teaches you how to leverage Azure Durable Functions to read and import the data from the Blob storage and dump the data into Cosmos DB.

Chapter 9, Implementing Best Practices for Azure Functions, teaches a few of the best practices that you should follow in order to improve performance and security while working in Azure Functions.

Chapter 10, Configuring of Serverless Applications in the Production Environment, demonstrates how to deploy a function app in an efficient way and copy/move the configurations in a smarter way so as to avoid human error. You will also learn how to configure a custom domain that you could share with your customers or end users instead of the default domain that is created as part of provisioning the function app.

Chapter 11, Implementing and Deploying Continuous Integration Using Azure DevOps, helps you learn how to implement continuous integration and delivery of your Azure Functions code with the help of Visual Studio and Azure DevOps.