Azure Serverless Computing Cookbook
上QQ阅读APP看书,第一时间看更新

Introduction

Every software application requires back-end components that are responsible for taking care of the business logic and storing data in some kind of storage, such as databases and filesystems. Each of these back-end components can be developed using different technologies. Azure serverless technology allows us to develop these back-end APIs using Azure Functions.

Azure Functions provides many out-of-the-box templates that solve most common problems, such as connecting to storage and building web APIs. In this chapter, you'll learn how to use these built-in templates. Along with learning about concepts related to Azure serverless computing, we'll also implement a solution to the basic problem domain of creating the components required for an organization to manage internal employee information.

Figure 1.1 highlights the key processes that you will learn about in this chapter:

Figure 1.1: The key processes

Let's go through a step-by-step explanation of the figure to get a better understanding:

  1. Client call to the API.
  2. Persist employee details using Azure Table Storage.
  3. Save profile picture links to queues.
  4. Invoke a queue trigger as soon as a message is created.
  5. Create the blobs in Azure Blob Storage.
  6. Invoke the blob trigger as soon as a blob is created.
  7. Resize the image and store it in Azure Blob Storage.

We'll leverage Azure Functions' built-in templates using HTTP triggers, with the goal of resizing and storing images in Azure Blob Storage.