Back

What is counted as bandwidth?

  • 0
  • Cloud
Marius Bolik
24 Aug, 2023, 08:15

Can you tell me what counts in the bandwidth statistics? For sure, these are files that are uploaded and requested by a user. But does internal traffic count? So for example, if I upload a 5mb file to a bucket and use this 5mb file in a function using storage.getFileDownload(), will that count as 10mb bandwidth or is internal traffic free? And will document request also count as bandwidth?

Kind regards, Marius

TL;DR
Bandwidth counts both inbound and outbound traffic. So, reading 10 documents from a database and sending 1 to the client would count as 11 in terms of bandwidth.
joeyouss
24 Aug, 2023, 13:31

Hi! all the bandwidth through the Appwrite API will count towards bandwidth. However, there is an exception - the data migrated from other vendors that will not count to usage.

Marius Bolik
25 Aug, 2023, 07:26

Alright, thank you @joeyouss. So also internal Bandwidth counts? For example downloading an Image from an Appwrite Bucket into a Function? Is there a way to directly access images through function without downloading them through the API to safe bandwidth?

Burkle
27 Feb, 2024, 20:26

Same question here @joeyouss. If I read data from a function (either documents or images/files), will that count as bandwidth?

Evdog
27 Feb, 2024, 20:36

Yep, all inbound and outbound traffic

Burkle
27 Feb, 2024, 21:12

Thanks! Just to make sure I get this right - if my function reads 10 documents from the DB, but only sends 1 out to the client, would the bandwidth be 11 (10+1), or 1?

D5
27 Feb, 2024, 21:35

Affirmative

Burkle
27 Feb, 2024, 22:12

Affirmative 11, or 1?

D5
27 Feb, 2024, 23:00

10+1

D5
27 Feb, 2024, 23:00

=

D5
27 Feb, 2024, 23:00

11

D5
27 Feb, 2024, 23:01

πŸ˜…

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more