Book Image

Learning Azure Functions

By : Mitesh Soni, Manisha Yadav
Book Image

Learning Azure Functions

By: Mitesh Soni, Manisha Yadav

Overview of this book

Functions help you easily run small pieces of code in cloud with Azure functions without worrying about a whole application or the infrastructure to run it. With Azure functions, you can use triggers to execute your code and bindings to simplify the input and output of your code. This book will start with the basics of Azure Functions. You will learn the steps to set up the environment and the tools that we will be using in the further chapters. Once you have a better understanding of this, we will be creating our first hello world function app. Later you will be introduced to triggers, how they are used to activate a function, and how binding can be used to output results of a function.You will also explore the steps to create an assembly with complex functionality that can be used by functions. Next, this book will teach you to scale your functions and use them to process data, integrate systems, and build simple APIs and microservices. Finally, this book will cover some diagnostic techniques with Azure App services and best practices of working with Azure Functions. By the end of this book, you will be well-versed with the techniques of scaling your Azure functions and making the most of serverless architecture.
Table of Contents (17 chapters)
Title Page
About the Authors
About the Reviewers
Customer Feedback

Chapter 3. Application of Triggers

"The difference between ordinary and extraordinary is that little extra."

- Jimmy Johnson

First, let's understand what a trigger is.

In normal English, a trigger is an event or situation that causes something to start. This something can be some sort of processing of data or some other service that performs some action. Triggers are just a set of functions that get executed when some event gets fired.

In Azure, we have different types of triggers, such as an implicit trigger, and we can also create a manual trigger.

Azure Functions allow you to write code in response to a trigger in Azure. As we have seen in Chapter 2, First Function App - Anatomy and Structure of a Function App, the moment a photograph is uploaded into a blob container of a storage account, the Azure Function will start execution and resize the photograph and create a thumbnail of it.

The following are some of the topics that we will cover in this chapter:

  • Common types of triggers
  • HTTP
  • Event bus...