简体   繁体   English

Google Cloud Storage API 和 Google Drive API 有什么区别?

[英]What is the difference between Google Cloud Storage API and Google Drive API?

I want to make an app that allow users to upload photos and their friends can access these photos.我想制作一个允许用户上传照片并且他们的朋友可以访问这些照片的应用程序。

Google Cloud Storage API is better documented but, drive API is free unlike Cloud API.谷歌云存储 API 有更好的文档记录,但是驱动器 API 是免费的,不像云 API。

So, I want to understand when to use this and when to use this?所以,我想了解什么时候用这个,什么时候用这个? What is the core difference between both and what is more flexible?两者之间的核心区别是什么,更灵活的是什么?

Both storage solutions have similarities but Cloud Storage expands a lot of features by giving you more control and flexibility (in both API and pricing).两种存储解决方案都有相似之处,但 Cloud Storage 通过为您提供更多控制和灵活性(在 API 和定价方面)扩展了许多功能。 You can say that Drive is user-oriented while Cloud Storage is dev-oriented.你可以说 Drive 是面向用户的,而 Cloud Storage 是面向开发者的。

Google Drive has 15GB of free storage while Cloud Storage has free 5GB that's on Free Tier or Spark Plan . Google Drive 有 15GB 的免费存储空间,而 Cloud Storage 有免费的 5GB免费套餐或Spark 计划 While you may find it cheaper to store data in Google Drive, once you start having more than 15GB of data, you will have to pay for additional storage and its pricing is fixed.虽然您可能会发现在 Google Drive 中存储数据更便宜,但一旦您开始拥有超过 15GB 的数据,您将不得不为额外的存储付费,并且其价格是固定的。 Meaning, you pay full price even on unused storage.这意味着,即使是未使用的存储空间,您也要支付全价。

One advantage of using Cloud Storage is that you only pay for what you use .使用 Cloud Storage 的优势之一是您只需为使用的内容付费 Meaning, you are billed depending on total amount of data you stored + operations cost.这意味着,您的费用取决于您存储的数据总量 + 运营成本。 You can also easily calculate these monthly estimates through GCP Calculator .您还可以通过GCP 计算器轻松计算这些月度估算值。

Here's a link that describes different use case scenarios depending on storage products.这是一个链接,它描述了取决于存储产品的不同用例场景。 Since you're developing a mobile app (Android), I suggest that you take a look into Cloud Storage for Firebase as it suits well with the requirements you've provided.由于您正在开发移动应用程序 (Android),因此我建议您查看Cloud Storage for Firebase ,因为它非常适合您提供的要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android API 和 Google API 有什么区别? - What is the difference between Android API and Google API? 哪种方法是通过Google API为Android应用程序使用文件存储的最佳方式? Google云端硬盘SDK或Google云存储API? - Which Is the best way to use file storage for Android app by Google API? Google Drive sdk or Google cloud Storage API? Android:Google Cloud Storage API中的SQLite存储 - Android : SQLite storage in Google Cloud Storage API google api和google rest api之间的区别? - difference between google api and google rest api? Chrome TTS,Google TTS,Cloud Speech API和Android TTS有什么区别? - What is the difference between Chrome TTS, Google TTS, Cloud Speech API, and Android TTS? 在Android中使用Google Cloud Storage JSON api - Using Google Cloud Storage JSON api in android 数据库存储API和DOM存储API有什么区别 - What is the difference between database storage API and DOM storage API Android语音到文本API(识别器意图)和Google Cloud Speech API之间的区别? - Difference between Android Speech to Text API (Recognizer Intent) and Google Cloud Speech API? 带有Eclipse的Google Drive API - Google drive API with eclipse Google Drive API 不可用 - Google Drive API Not Available
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM