Types of input bindings

There are four types of input bindings:

  • Blob storage: Blob content is used as input to the Azure Function. For example, consider a scenario where we want to create thumbnails for an image whenever a new image is uploaded to the blob storage. In this case, we will create a blob trigger with input bind and blob storage.
  • Storage tables: Storage table content is used as input to the Azure Function. For example, instead of hardcoding configuration data in the Azure Function, store all of the configuration in the storage table and bind with the Azure Function. So when our function runs, it takes all the input from the storage table.
  • SQL tables: SQL table data can also be used as input for the Azure Function. For example, consider a scenario where we want to check the quantity of a product at the end of every day. We have all the product details stored in the SQL table. We have the Azure Function, which is bound with the SQL table and triggers at the end of every day. Once the Azure Function runs, it takes the input from the SQL table and processes the data.
  • NoSQL DB: No-SQL data like data, which is stored as a document, can also be used as input to the Azure Function. For example, the Azure Function reads JSON data which is stored in NoSQL DB and processes it.

In the next section, we will discuss output bindings.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.210.205