Question

Is App Platform transfer to Spaces counting as outbounding transfer?

Posted September 9, 2021 98 views
DigitalOceanDigitalOcean SpacesDigitalOcean App Platform

App Platform has very little basic transfer 40 GB and relatively expensive price per gb.

So in case of building a social media platform with an option to post photos and camera videos may not be enough, even with a small number of users.

Media to user can be provided directly from S3, but it must be handled first by application and sent to Space.

So, the question: Is App Platform transfer to Spaces counting as an outbound transfer?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi Legoland,

Outgoing bandwidth counts if it’s being served to a customer. In your example:

  1. Photo upload from the user to your service hosted on App Platform does not accrue bandwidth
  2. Sending the photo uploaded by the user from App Platform to Spaces, doesn’t count for your bandwidth.
  3. Downloading the photo from Spaces to your service in App Platform, counts as Spaces bandwidth.
  4. Sending the photo from your service in App Platform to the user, counts as App Platform bandwidth.

One thing you can do to reduce your bandwidth spend is to serve the photos directly from Spaces. You can make your app prepare the URLs pointing to their Spaces URL and even use the Spaces CDN if you require caching. If you do this, then you only pay for Spaces bandwidth when serving images and reduce the bandwidth used by your app.

Best,
Moises

  • Sending the photo uploaded by the user from App Platform to Spaces, doesn’t count for your bandwidth.

    This is exactly what I asked about. Thanks for quick response :)