# Content Retrieval is too slow

**URL:** <https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099>\
**Category:** Ecosystem and Usage\
**Created:** [January 23, 2020, 6:59pm UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099 "2020-01-23T18:59:15Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![lyrx](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/lyrx/32/3019_2.png) [@lyrx](https://discuss.ipfs.tech/u/lyrx)\
**Post date:** [January 23, 2020, 6:59pm UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/1 "2020-01-23T18:59:15Z")

</div>

I worked a lot with IPFS and tried out many of its features. I want to say that I am still in love with this network, because of its simplicity and its usability in so many contexts. However, it is sometimes an unhappy love! My main problem with the pride is content resolution. Any content that I add to a specific node, just takes way too long to be available “on the other end” of the public network.

I understand that this is a very hard problem to solve, even for the brightest developers. And I am sure there are very smart people working on this.

Please give me some good reasons for more optimism! Will it ever be solved/improved? How will it be solved? — Make IPFS quicker, please !!!

---

<div class="post-metadata">

**Author:** ![RubenKelevra](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/rubenkelevra/32/3390_2.png) [@RubenKelevra](https://discuss.ipfs.tech/u/RubenKelevra)\
**Post date:** [January 23, 2020, 7:08pm UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/2 "2020-01-23T19:08:14Z")

</div>

Which usecase do you have? Just two nodes you own? Then you can connect them together to speed this up.

You know that you can start your daemon with `--enable-pubsub-experiment` and use IPNS names, to speed the resolution up as well? 🙂

---

<div class="post-metadata">

**Author:** ![lyrx](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/lyrx/32/3019_2.png) [@lyrx](https://discuss.ipfs.tech/u/lyrx)\
**Post date:** [January 23, 2020, 7:14pm UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/3 "2020-01-23T19:14:55Z")

</div>

I would like to use public ipfs gateways to serve my single page applications. So if I add the page to my node, there is too much delay until it is found by the gateways. So if my node is up and running, it would be absolutely fantastic if any public gateway could serve my page in no time.

---

<div class="post-metadata">

**Author:** ![RubenKelevra](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/rubenkelevra/32/3390_2.png) [@RubenKelevra](https://discuss.ipfs.tech/u/RubenKelevra)\
**Post date:** [January 23, 2020, 8:39pm UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/4 "2020-01-23T20:39:48Z")

</div>

Which public gateway do you use?

---

<div class="post-metadata">

**Author:** ![vasa-develop](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/vasa-develop/32/1749_2.png) [@vasa-develop](https://discuss.ipfs.tech/u/vasa-develop)\
**Post date:** [January 23, 2020, 10:06pm UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/5 "2020-01-23T22:06:07Z")

</div>

I think @lyrx is referring to the official ipfs gateway.

---

<div class="post-metadata">

**Author:** ![RubenKelevra](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/rubenkelevra/32/3390_2.png) [@RubenKelevra](https://discuss.ipfs.tech/u/RubenKelevra)\
**Post date:** [January 24, 2020, 12:55am UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/6 "2020-01-24T00:55:06Z")

</div>

I’m not sure how the status of the gateway is considered in terms of performance. But at my location the Cloudflare gateway is better in terms of performance.

@lyrx do you use ipns with pubsub?

Edit: Just checked with a freshly generated CID, the Cloudflare gateway loads the page within 2 seconds.

---

<div class="post-metadata">

**Author:** ![lyrx](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/lyrx/32/3019_2.png) [@lyrx](https://discuss.ipfs.tech/u/lyrx)\
**Post date:** [January 24, 2020, 10:25am UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/7 "2020-01-24T10:25:37Z")

</div>

I am not thinking about specific gateways. My usecase is cloudflare as a gateway and pinata for pinning – and my own node for adding. Anyway, if we had k nodes for pinning [P\_1 … P\_k] and m gateways [G\_1 … G\_m] If you randomly choose a gateway and a pinning node, than it should work even if all the other nodes were down. That would be real censorship resistance. m \* k combinations would have to work for that, and that would be fantastic.

Also, if I used pubsub, maybe that would help me, I do not known enough about it. But if I would just like to be part of the swarm, then it would only help me if everybody had it. Look at a swarm of birds in the sky: There is no leader, but the information which direction to take propagates almost instantanously from one bird to the whole swarm. That would be exciting: Be a node and add any information, and in a minute it is available everywhere …

---

<div class="post-metadata">

**Author:** ![RubenKelevra](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/rubenkelevra/32/3390_2.png) [@RubenKelevra](https://discuss.ipfs.tech/u/RubenKelevra)\
**Post date:** [January 24, 2020, 11:06am UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/8 "2020-01-24T11:06:33Z")

</div>

Pubsub is basically direct communication, instead of talking thru the DHT, which is much faster.

You asked how you get the gateway access faster: That’s how.

And birds can’t propagate an information world wide in real time either 😉

---

<div class="post-metadata">

**Author:** ![vasa-develop](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/vasa-develop/32/1749_2.png) [@vasa-develop](https://discuss.ipfs.tech/u/vasa-develop)\
**Post date:** [January 24, 2020, 1:03pm UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/9 "2020-01-24T13:03:25Z")

</div>

Maybe this can help:

> **[How to Keep Your IPFS Nodes Connected and Ensure Fast Content Discovery](https://medium.com/pinata/how-to-keep-your-ipfs-nodes-connected-and-ensure-fast-content-discovery-7d92fb23da46)**
>
> An IPFS Tutorial

Maybe @obo20 can help you out more on this 🙂

UPDATE: As you don’t own the nodes at Pinata & Cloudflare, you can setup a node yourself and connect it to the nodes at pinata & Cloudflare. This would ensure atleast 2nd degree connection, if not 1st.

---

<div class="post-metadata">

**Author:** ![lyrx](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/lyrx/32/3019_2.png) [@lyrx](https://discuss.ipfs.tech/u/lyrx)\
**Post date:** [January 24, 2020, 2:10pm UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/10 "2020-01-24T14:10:34Z")

</div>

Hi, you give me valuable information, thanks! Sorry to ask for even more: I think I would need the ipfs multiaddresses for the cloudflare/ipfs gateways, and then I could connect my own node with them.

For the pubsub thingy: How to use pubsub and ipns to speed up content publication to gateways: Is there any doc out there that could be linked related to this?

EDIT: I found this: [https://github.com/ipfs/go-ipfs/blob/master/docs/experimental-features.md#ipns-pubsub](https://github.com/ipfs/go-ipfs/blob/master/docs/experimental-features.md#ipns-pubsub)

---

<div class="post-metadata">

**Author:** ![vasa-develop](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/vasa-develop/32/1749_2.png) [@vasa-develop](https://discuss.ipfs.tech/u/vasa-develop)\
**Post date:** [January 24, 2020, 4:55pm UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/11 "2020-01-24T16:55:44Z")

</div>

> I think I would need the ipfs multiaddresses for the cloudflare/ipfs gateways, and then I could connect my own node with them.

You may need to contact them. I’m not sure if they(cloudflare guys) will be in for this.

---

<div class="post-metadata">

**Author:** ![vasa-develop](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/vasa-develop/32/1749_2.png) [@vasa-develop](https://discuss.ipfs.tech/u/vasa-develop)\
**Post date:** [January 24, 2020, 10:04pm UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/12 "2020-01-24T22:04:46Z")

</div>

@lyrx Let us know if you are still stuck.

---

<div class="post-metadata">

**Author:** ![RubenKelevra](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/rubenkelevra/32/3390_2.png) [@RubenKelevra](https://discuss.ipfs.tech/u/RubenKelevra)\
**Post date:** [January 24, 2020, 10:11pm UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/13 "2020-01-24T22:11:36Z")

</div>

You don’t have to excuse. This board is meant to be used for discussions and exchange of knowledge.

Feel free to extend the currently available information on the docs if you think they are not clear enough, or there are gaps.

This webpage is available via CloudFlares gateway and stored on three nodes by the author on IPFS.

It’s pretty fast.

> **[Hugo and IPFS: how this blog works (and scales to serve 5,000% spikes...](https://withblue.ink/2019/03/20/hugo-and-ipfs-how-this-blog-works-and-scales.html)**
>
> Learnings from real-world experience with IPFS, and the curious stack that powers this website

The author explains in a linked howto how he set up this webpage.

Best regards

Ruben

---

<div class="post-metadata">

**Author:** ![lyrx](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/lyrx/32/3019_2.png) [@lyrx](https://discuss.ipfs.tech/u/lyrx)\
**Post date:** [January 25, 2020, 11:37am UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/14 "2020-01-25T11:37:42Z")

</div>

Very well! For me this P2P stuff is not only about technology, it is also social – social learning. I paid some money to have my own IPFS node on a hosting platform, and I even started my own private dedicated IPFS network, because I thought it could be a good idea. It wasn’t! I learned that P2P is about sharing and participating. That is why I am back in the public IPFS network, and I want to have my node on each of my hardware pieces, and maybe have other people who share my data on their nodes. There are still problems: NAT, latency and others, but they seem to be on the decline, these problems! I think that cloudflare does a good job with their IPFS integration, and it might be a beginning only …

I already took over one charity site from some people, and I think I can save them mire than a 100 dollars a year for hosting, because I have put it on IPFS+cloudflare. Underprivileged might soon be able to share their content, because it is much cheaper to do so (less hosting costs), and it might be censorship resistent !!

---

<div class="post-metadata">

**Author:** ![hector](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/hector/32/178_2.png) [@hector](https://discuss.ipfs.tech/u/hector)\
**Post date:** [January 27, 2020, 7:51am UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/15 "2020-01-27T07:51:35Z")

</div>

> [@lyrx](#):
>
> Please give me some good reasons for more optimism! Will it ever be solved/improved? How will it be solved? — Make IPFS quicker, please !!!

Rest assure there are a lot of efforts being put into making content resolution great again, with many things in progress at the moment, and many others in testing. These should start landing in a few weeks.

Regarding gateways, here are a few you can connect to (but they will rather aggressively prune your connections from their side):

```auto
           /ip6/2604:1380:1:b600::3/tcp/4001/ipfs/QmVjLyXj8NtBUt1XoEWLmwwb9NPZJrRUsjppi8a3uw29CZ
                /ip6/2604:1380:4020:1400::3/tcp/4001/ipfs/QmVNb9aEcdFgxGBLCzs9oJziSxbodt6sZMRcoXYHkyzfQx
                /ip6/2604:1380:2000:f700::3/tcp/4001/ipfs/QmXAdzKCUZTg9SLLRK6nrfyhJmK1S43n2y5EBeGQ7zqhfW
                /ip6/2604:1380:40b0:c00::1/tcp/4001/ipfs/QmbUa4f2y1yqAwFBPS61A818xFoqVAPbbJPXti5wjV3Tdd
                /ip6/2604:1380:40c0:e00::3/tcp/4001/ipfs/QmYZmw1PQXtKVeAjRfn8TnKYAurSdezRd1kdDjenzxTF6y
                /ip6/2604:1380:1:b600::1/tcp/4001/ipfs/QmXUEWEWWq6dhKqBwryPSR8jYoa9ByeAaqnz62CRDY7ppL
                /ip6/2604:1380:3000:6f00::3/tcp/4001/ipfs/QmQ41LAQUdH6JQCeSR1qMT8qdPAkZ9XgkvqYHs9HiAdh5Z
                /ip6/2604:1380:1000:ea00::3/tcp/4001/ipfs/QmXYHU1M8t86gRKvUmE42smybPKXqTPEUPDUaCVtLmS6Bw
                /ip6/2604:1380:2000:f700::1/tcp/4001/ipfs/QmRzfM4kLwk6AjnZVmFra9RdMguWyjU4j8tctNz6dzxjxc
                /ip6/2604:1380:4020:1400::1/tcp/4001/ipfs/QmaXN7mAgF82xLwmARPJ3snW3Nni9jb7aAn3BNdCyiw63w
                /ip6/2604:1380:40b0:c00::3/tcp/4001/ipfs/QmYAFesVS5hJSBmGBkHLWG7ou3cLrfBL3nisqFmdpgyYdN
                /ip6/2604:1380:40c0:e00::1/tcp/4001/ipfs/QmSPz3WfZ1xCq6PCFQj3xFHAPBRUudbogcDPSMtwkQzxGC
                /ip6/2604:1380:4080:600::3/tcp/4001/ipfs/QmS4YDJRE5CSST84BowT1WxKRVxGnW7YTrJxMk7bcZZbfV
                /ip6/2604:1380:3000:6f00::1/tcp/4001/ipfs/QmXygeCqKjpcbT9E7jgSbAvcDnPaJp9gQDzEVFZ6zzjVc2
                /ip6/2604:1380:1000:ea00::1/tcp/4001/ipfs/QmVLb8bi8oAmLwrTdjGurtVGN7FaJvhXP5UM3s56uyqfxL
                /ip6/2604:1380:4080:600::1/tcp/4001/ipfs/QmQzT1S3mGoTZFTzCXp67xnxxKPppYfpYDAxLMj4Zsp6kU

```

---

<div class="post-metadata">

**Author:** ![joeyguerra](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/joeyguerra/32/3434_2.png) [@joeyguerra](https://discuss.ipfs.tech/u/joeyguerra)\
**Post date:** [January 28, 2020, 2:12am UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/16 "2020-01-28T02:12:14Z")

</div>

Did you try a pinning service?

---

<div class="post-metadata">

**Author:** ![lyrx](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/lyrx/32/3019_2.png) [@lyrx](https://discuss.ipfs.tech/u/lyrx)\
**Post date:** [January 30, 2020, 4:56pm UTC](https://discuss.ipfs.tech/t/content-retrieval-is-too-slow/7099/17 "2020-01-30T16:56:49Z")

</div>

I use pinata as a pinning service, and it works very well.

I also tried out the list hector sent to me. Thanks! – You know, there are a lot of aspects in this, and I am not a real expert. But I just feel that this can really become great if nothing depends on a single node (or on a list of nodes). So for example today I have trouble with the cloudflare IPFS gateway that is inside my DNS configuration. So my websites do depend on this specific gateway, and today this gateway is just having a bad day. But my content is on IPFS, so the whole configuration should be more resilient, and it isnt. There should be no reason to configure specific IPFS nodes anywhere.
