Cost implications of downloading/uploading files through an App Service to the Blob storage vs directly downloading/uploading to Blob storage

Andreas H 36 Reputation points
2020-12-16T10:42:03.223+00:00

Our web app consists of an App Service that exposes the API and a Blob Storage where the files are stored. We are considering the following design options:

  1. For downloading a file, the client request the file from the API, the API retrieves the file from the Blob Storage and returns the file bytes to the client.
    For uploading, the client sends the file to the API and the API stores the file to the Blob Storage.
  2. For downloading a file, the client requests a SAS from the API, the API requests a SAS from the Blob Storage and returns the SAS to the client. The client downloads the file from the Blob Storage using the SAS.
    For uploading a file, the client requests a SAS from the API, the API requests the SAS from the Blob Storage and returns the SAS to the client. The client uploads the file directly to the Blob Storage using the SAS.

In terms of cost what are the implications of the two approaches? Will the network traffic be charged twice in the first scenario: once for transferring the file from the Blob Storage to the App Service and once for transferring the file from the App Service to the Client?

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,905 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,606 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 35,316 Reputation points Microsoft Employee
    2020-12-16T19:50:50.167+00:00

    @Andreas H
    For Data transfer costs please refer to our billing page. If the App Service and Blob storage are in the same region there will not be charges for data transfer. Since the amount of data transferred would be the same then the costs would be similar.

    For pricing issues you can always chat with Sales via the pricing page. You can also always create support requests to our billing and account teams for free. You can also use our pricing calculator and enter detailed information to get an estimate.

    Hope this helps! Let us know if you have further questions or concerns.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

0 additional answers

Sort by: Most helpful