QuestionQ45

Develop Azure compute solutions

You are developing a software as a service (SaaS) offering for managing photographs. Users upload photos to a web service, and the service stores the photos in Azure Storage Blob storage. The storage account type is General-purpose V2.

When photos are uploaded, they must be processed to create and save a mobile-friendly version of each image. The process that produces a mobile-friendly version of the image must begin in less than one minute.

You need to design the process that starts the photo processing.

Solution: Create an Azure Function app that uses the Consumption hosting model and is triggered by the blob upload.

Does this solution meet the goal?

Explanation

The default polling-based Blob Storage trigger on an Azure Functions Consumption plan can delay processing of a new blob by up to 10 minutes after the function app becomes idle. It therefore cannot ensure that photo processing starts within one minute; an event-based Blob trigger using Event Grid provides lower latency.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!