How to upload file to google cloud storage using Java?

Which one is better? Google Cloud Storage or Amazon S3?

  • Currently my web application application is hosted on bare metal dedicated servers. I have 2 file storage servers (active and hot standby) containing (2TB of data) mostly user upload images which are being served through CDN. I am thinking to use cloud storage instead of in house storage servers. Is this a good idea to have cloud storage without moving your other services to cloud? I read this blog post but it is little old http://blog.cloudharmony.com/2010/06/google-storage-cdnstorage-hybrid.html. Edit: The file sizes ranges from 5KB to 10MB. Most of the files are less than 3MB.

  • Answer:

    In general, it's not a great idea to use somebody else's remote cloud storage instead of your own local storage, but you mentioned that these images are being served by a CDN.  In that case it's probably a good idea to use somebody else's cloud storage with their integrated CDN or CDN-like offering.  In fact, it's probably the quality of that CDN itself that really matters here.  No knock against Amazon, but when it comes to moving stuff between servers everywhere with fast links between them it's probably pretty hard to beat Google.

Jeff Darcy at Quora Visit the source

Was this solution helpful to you?

Other answers

I would go with AWS/S3 any day. Compared to other providers, AWS is: quicker to get started simpler to use flexible (less restrictive) access to a large number of features (AWS services, including CDN that you are looking for) larger dev community for support Price is more or less the same across AWS, Google, and Azure. [Disclaimer: I work at Amazon]

Syed Badar

Google's built-in CDN bundled with Cloud Storage appears to have a wider footprint than Amazon Cloudfront. From a programming point of view, Google Cloud Storage emulates a subset of S3, so you could try either one first using the S3 API.

Miguel Paraz

I'm not sure about Amazon S3, but I do know that Google Drive claims full rights to the files you upload to their servers - it might not be okay with some of your clients. If you want to have all the benefits of cloud storage without its drawbacks, I would recommend switching to a private cloud storage, such as Sher.ly or MyCloud.  You will have the benefit of quick upload times, not having to pay for transfer, and a very high degree of information security. In addition, you will have the usual benefits of cloud storage, such as the possibility of clients uploading their files straight into the cloud. If you'd like to learn more, visit http://sher.ly/?utm_source=DOM&utm_medium=Quora&utm_campaign=Quora

Adam Hauter

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.