Hi! I’m still new to DO and its services but I’m planning on creating a web app that will allow users to upload images to AWS S3. I intend to host the web app on a DO droplet. Would the image upload be considered inbound or outbound bandwidth transfer? From my understanding, the image is uploaded directly to S3 but since it’s being uploaded from the web app, I would think it’s outbound (please correct me if I’m wrong).
On a different note, would you recommend performing image resizing/compression on the droplet or offloading that to AWS?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
When a user uploads an image from a web app hosted on a DigitalOcean Droplet to AWS S3, that is considered as outbound bandwidth transfer from the perspective of the Droplet. This is because the data is flowing out from the Droplet to an external service.
In terms of image resizing and compression, there are several considerations:
If your Droplet has enough resources like CPU and memory, and is not heavily loaded, it can handle image resizing and compression tasks efficiently. Doing so on the Droplet could be more cost-effective, since AWS services like AWS Lambda (which can perform these tasks) come with additional costs.
On the other hand, offloading these tasks to AWS could be beneficial if your Droplet is already under heavy load or if you prefer not to manage these tasks yourself. AWS services like Lambda and S3 can automatically handle image resizing and compression, which could make your application more scalable and maintainable.
Ultimately, the decision between performing these tasks on the Droplet or offloading them to AWS would depend on your specific use case, workload characteristics, budget, and preferences.
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.