基于Minio+Sia实现的类S3形式文件分享功能详解

原文来自于Sia官方8月3日博客

We launched Sia Bounties two weeks ago with a bounty for a Sia + Minio integration, and received an overwhelmingly positive response! David Gore (user dvstate) quickly submitted a high-quality integration only two days later, and has been working diligently with several testers from the Sia community to refine and improve the Minio integration. Today we are thrilled to announce that the integration is ready for wider use, and it brings some very exciting new file sharing features to Sia!

我们在两周前发起了Sia大奖赛,第一个大奖任务是实现Sia+Minio的集成应用。在我们发布了大奖赛任务通知后,我们收到了大量参赛者的积极回应!David Gore (网名为:dvstate)只在任务发布的两天后就很快地高质量地完成了集成任务,并在随后的时间内积极与Sia社区的大量测试用户进行交互,不断优化和提升Sia与Minio的集成功能。今天我们很激动地宣布集成功能已可以提供给更多用户使用了。它能为Sia带来一些令人兴奋的新的文件分享功能!

Minio is a distributed object storage server, which allows users to connect to any data source (like S3, Azure, GCP), create buckets for file storage, and then share URLs to the files. It also provides an external S3-compatible API.

Minio是一个分布式对象存储服务器,它允许用户连接任何数据源(如S3、Azure和GCP)、为文件创建创建存储空间、为文件创建分享链接地址。它也提供了额外的S3兼容的API接口。

With the Sia integration, Minio users can now store their files on the Sia network for a fraction of Amazon’s price.

通过与Sia集成,Minio用户现在可以将他们的文件存储在Sia网络中,其存储费用仅为Amazon的零头。

Here’s how the integration works. First, on Sia, the user deposits Siacoin and creates an allowance for storage on the network. Then, on Minio server, the user launches the Sia gateway, creates buckets, and starts uploading files.

集成后的工作原理是这样的:首先在Sia中用户存放SC,并且在网络中为存储空间创建津贴。然后在Minio服务器中用户启动Sia网关、创建存储空间、并且开始上传文件。

Uploaded files are first stored locally on the Minio server, and then uploaded to Sia. The upload is marked as complete once the file reaches 1x redundancy on Sia. From there, Sia will naturally boost the redundancy to 3x, storing the data across 30 hosts all over the world.

上传的文件首先存储在Minio服务器本地,然后上传至Sia网络中。当在文件在Sia网络中达到1倍冗余时,上传任务将被标识为完成。此时Sia那你就将会自动将形成3倍冗余,将数据存储在世界各地30个托管主机中。

When downloading data, the files are first downloaded from the Sia network to the Minio server, and then downloaded from the server to the user. Minio server caches the file for quick downloading. As the cache fills up, it will automatically delete the oldest files. This ensures that popular, frequently downloaded files will be fast, while less frequently accessed files will have a slight delay.

当下载数据时,文件将首先从Sia网络中下载至Minio服务器中,然后从服务器下载给用户。Minio服务器通过对文件采用缓存机制实现快速下载。当缓存满了之后,它将会自动删除最旧的文件。这将确保流行的、下载频繁的文件能快速下载,因为当访问不多的文件将会有少量延迟。

Here’s a great example. We created a public bucket in a Minio server (thanks Luxor for hosting!) called “public” and added some files. You can view through the Minio web interface: http://minio.luxor.tech/minio/public/ or you can download or embed the files directly from a URL. Everything is being stored on the Sia backend:

下面是很好的示例。我们在Minio服务器中创公共存储空间(感谢Luxor提供主机托管!),我们称该服务器为“公有存储”,然后向该空间添加了一些文件。你可以通过Minio的web接口( http://minio.luxor.tech/minio/public/  )查看这些文件,也可以通过URL下载文件或者嵌入这些文件地址。

Obelisk Chip: http://minio.luxor.tech/public/obelisk_chip.png

Sia+Minio: http://minio.luxor.tech/public/Sia_Minio_Bounty_03.png

David’s Talk:http://minio.luxor.tech/public/David_Sia_Presentation.mp4

Sia v1.3.0: http://minio.luxor.tech/public/Sia 1.3.0 all platforms.zip

Sia V1.3.0 UI: http://minio.luxor.tech/public/SIa-UI 1.3.0 all platforms.zip

This means that, with the Sia + Minio integration, users can start using Sia for file sharing today!

这意味着通过Sia+Minio的集成,用户今天可以开始使用文件共享了!

We are thrilled with the success of this first bounty, and are looking forward to launching the next bounty in a couple weeks. Congratulations to David Gore for winning the 300,000 SC reward!

我们为第一个大奖赛任务的成功感到很激动,并且将在未来的几周启动下一个大奖赛!

今天我们先祝贺此次获奖的David Gore,他将获得300000个SC。

For questions related to the Sia + Minio integration, please join the #bounties channel on our Slack or post issues to David Gore’s Github repository at https://github.com/dvstate/minio. More detailed instructions for getting set up are available on the repo.

如果有关于Sia+Minio的问题,请在我们的Slack讨论组中加入#bounties频道,或者向David Gore的Github空间https://github.com/dvstate/minio提问!更多的关于获取配置的说明可通过repo找到!


译者:区块链研习社 菜菜子

你可能感兴趣的:(基于Minio+Sia实现的类S3形式文件分享功能详解)