简体   繁体   English

在 IPFS 上持久存储数据

[英]Storing data persistently on IPFS

Recently I developed an alternative to Google Drive using IPFS (the decentralized storage technology).最近,我使用IPFS (去中心化存储技术)开发了 Google Drive 的替代方案。 The app serverd it's purpose but suffered from 2 major problems:该应用程序服务于它的目的,但遇到了两个主要问题:

  1. App was super cool for small files, but on large files, the download was very slow and eventually stopped.应用程序对于小文件非常酷,但是对于大文件,下载非常缓慢并最终停止。
  2. Data was not persistent, means I lost few files after few hours of upload.数据不是持久的,这意味着我在上传几个小时后丢失了几个文件。

My questions:我的问题:

Is IPFS a persistent storage system? IPFS 是持久存储系统吗? If no what measures can be used to make it persistent?如果没有可以采取什么措施使其持久化?

Understood your question.So coming to the points.明白你的问题。所以说到点子上了。 Is IPFS a persistent storage system ?

IPFS is a distributed system that can (among other things) resolve a content hash to the content it represents. IPFS 是一个分布式系统,可以(除其他外)将内容哈希解析为它所代表的内容。 This content can never truly be guaranteed to be available (maybe you're offline, maybe all of the peers with it are offline, maybe you're behind a powerful NAT, maybe the network split and the peers with the content are on the other partition).永远无法真正保证此内容可用(也许您处于离线状态,也许所有拥有它的对等点都处于离线状态,也许您在强大的 NAT 后面,也许网络分裂而具有该内容的对等点在另一方划分)。 In IPFS the simple or decentralized system an object is online only when the nodes that are holding the object spend energy.在 IPFS 简单或分散的系统中,只有当持有对象的节点消耗能量时,对象才在线。

And your second part,IPFS is mainly for the permanence and permanence!=persistent.IPFS itself currently handles this by means of "pinning", which excludes an object and its children from garbage collection within one IPFS node.而你的第二部分,IPFS 主要是为了持久性和持久性!=persistent.IPFS 本身目前通过“固定”的方式处理这个问题,它从一个 IPFS 节点内的垃圾收集中排除一个对象及其子对象。

Work is going on to make it more persistent.One of them is Filecoin ( paper ), and there a couple of concrete ideas for an ipfs-cluster tool.正在努力使其更加持久。其中之一是 Filecoin(论文),还有一些关于 ipfs-cluster 工具的具体想法。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM