在生产转移中使用gsutil或google cloud storage API有什么好处吗? [英] Is there any advantage to using gsutil or the google cloud storage API in production transfers?

查看:73
本文介绍了在生产转移中使用gsutil或google cloud storage API有什么好处吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪种产品更适合与生产传输,gsutil或Google云存储API配合使用?

Which is better to use with production transfers, gsutil, or the google cloud storage API?

推荐答案

gsutil使用Google Cloud Storage API传输数据,特别是JSON API(默认情况下,您可以更改).与直接使用API​​相比,它的主要优点是它已经过调整,可以快速传输数据.例如,它可以打开与GCS的多个同时连接,每个连接都同时上传或下载文件的一部分,这在很多情况下可以大大提高总吞吐量.

gsutil uses a Google Cloud Storage API to transfer data, specifically the JSON API (by default, you can change it). Its main advantage over using the API directly is that it has been tuned to transfer data quickly. For example, it can open up multiple simultaneous connections to GCS, each of which is uploading or downloading part of the file concurrently, which in many cases can provide a significant boost to total throughput.

没有理由直接针对API编程也不能提供相同甚至更好的性能,但是我希望如果以最简单的方式实现事物,gsutil的平均速度至少会提高一点.

There's no reason that programming against the API directly could not also provide the same or even better performance, but I would expect gsutil to be at least a little bit faster on average if you implement things in the simplest possible manner.

这篇关于在生产转移中使用gsutil或google cloud storage API有什么好处吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆