10 ms·
How We Made IPFS Content Publishing 10x Faster
- someonebaggy 3mo agoIs it also possible to speed up lookup? I never used IPFS much as it took several minutes to find a cid.
- throwaway8388 3mo agoActually, lookup is super fast - CID lookup is consistently <200ms from the EU [0]. The original slowness came mostly from stale records and NAT’d peers that were indexed in the DHT which has since been mostly resolved. [0] https://probelab.io/ipfs/dht/#chart-ipfs-dht-lookup-performance-ts https://probelab.io/ipfs/dht/#chart-ipfs-dht-lookup-performa...
- yiannisbot 3mo agoWhen’s the last time you tried? It must be much faster now. Check: https://probelab.io/ipfs/dht/#chart-ipfs-dht-lookup-performance-ts https://probelab.io/ipfs/dht/#chart-ipfs-dht-lookup-performa...
- esperent 3mo agoDo you have any examples of actual content to look up, rather than benchmark graphs?
- embedding-shape 3mo ago> Return control back to the user after most (not all) of the PUT RPCs have succeeded and continue with the remaining ones in the background. Making things faster by doing less (and not the same) been speeding up computing since forever! Can't help but feel like it's slightly misleading to call the providing ("publishing") faster when it's not actually doing the same, it's just that most parts turned async instead of waiting for confirmation. Wouldn't this lead to the problem where the user things everything been provided properly, but once others try to find it, the records haven't yet been published? As far as I understand, it'd still take mostly the same amount of time until the entire CID (not just some of them) are available to others, the only thing that got "faster" is the end-user UX of the one providing?
- Groxx 3mo agoThe "Early Return" sections describe it more, I don't think it's as bad as it sounds in that first bullet. They're returning after 15 out of 20 complete,and it sounds like even if only those 15 end up succeeding it'll still generally be fine. (Exactly how fine / is that violating some common expectations and will cause problems: I dunno. Not familiar enough with IPFS's internals) That said: >In practice, at least one of the 20 follow-up requests fails in the vast majority of operations, and a single unresponsive peer can stall the entire phase waiting for a timeout. It continually surprises me how often systems lack a Fast Fallback-like strategy¹. Or at least sound like it. Just an absolute flood of apps and websites and systems that try to do something once and then never tried an alternate route until that finishes, something like a minute or two later... for a process that usually takes less than a second. It's maddening. By the time you're considering one to be "stalled" and delaying everything unnecessarily, you probably should've already started trying two or three alternate routes! https://wikipedia.org/wiki/Happy_Eyeballs https://wikipedia.org/wiki/Happy_Eyeballs
- WorldMaker 3mo ago> (Exactly how fine / is that violating some common expectations and will cause problems: I dunno. Not familiar enough with IPFS's internals) I felt the article addressed that a bit further down. 20 copies is a somewhat arbitrary knob in the Kademlia DHT design IPFS is based on and this lab's research suggested that 15 was probably closer to good enough for GET requests to succeed at about the same time cost. Rather than dropping the knob for the entire DHT, because redundancy is always useful in the long run they went with the Early Return and a secondary process called the Reprovide Sweep that still tries to push the network towards the 20 live copies minimum it desires. I'm assuming the Reprovide Sweep was work previously done/documented because it seems like something that might have been more interesting to discuss at longer length in relevant parts of the article.
- pocksuppet 3mo agoAs far as I understand, the producer is publishing to the 20 nearest nodes it finds, but the consumer is also searching the 20 nearest nodes it finds, and there is quite a big safety margin built into that number 20. Almost all consumers should still be able to find your object once it has only published to 10 or 15. This is a probabilistic system anyway. Even if publication finishes to 20 nodes, why is that enough to return to the caller? Shouldn't it be 30, or 50, just in case? I'd say it makes sense to return control once zero PUTs have been made and do the whole thing in the background, to avoid serializing operations that usually don't need to be serialized, such as publishing multiple objects.
- nekusar 3mo agoAre the defaults still leaking your whole internal and external IP allocations to the dHT still? Its security posture was absolutely fucking gross the last time I reviewed it. And of course, there's a shitcoin bolted on as well. Last thing I want to do is feed into FileCoin. Of course, everything new these days has some financial interaction crap bolted on to entice speculators and ilk.
- catapart 3mo agoI'll add to the "is it still...?" questions. Last I was told about it, there was no way to delete stuff from IPFS. Nothing enforceable, at least. Setting aside that public stuff is "impossible" to delete on the internet, there's something appealing to me about being able to shut off my server. Feels like that is less possible with IPFS hosted content. Does anyone have some perspective for me about removing content?
- deno 3mo agoImagine you created a torrent (and/or magnet link) with a file and then stopped seeding after some time. If it was popular it will probably live on, if not then eventually it disappears.
- catapart 3mo agoThanks! Yeah, I kind of figured that was still the case. Not really any use cases I have that I would feel comfortable with that paradigm, but I'm glad it's available!
- somat 3mo agoIs that not the same with anything published to the internet. For example I could keep your comment published and available for as long as I had interest in doing so despite any effort you may take to remove it from HN. I mean I guess tech like ipfs and bittorrent try to automate this process(keeping something on the internet as long as there is interest) but you let something out on the internet it could stay there a long while. Or it could go poof and disappear, it depends on how much interest there is in the subject.
- deleted 3mo ago[deleted]
- iamnothere 3mo agoTrue, and in fact HN will not allow you to remove your past comments after the delete period has passed. People who are obsessed with deleting their past history should probably not be posting here! (Not even a GDPR request will help you, for those in Europe.)
- boramalper 3mo agoIs anyone still (or has anyone ever) used IPFS in production? I’m not talking about technology demos such as Wikipedia-on-IPFS (which indeed worked and was impressive) but where IPFS is actually being relied on for some functionality.
- pixel_popping 3mo agoIt's funny because even in Piracy, IPFS has never really taken off and that's a massive use case.
- frollogaston 3mo agoAlso public key lists like what Whatsapp now publishes
- boramalper 3mo agoIt slowly was taking off—e.g. Library Genesis on IPFS[0]—but then IPFS introduced Bad Bits Denylist [1] which killed it on arrival. [0] https://freeread.org/ipfs.html https://freeread.org/ipfs.html [1] https://badbits.dwebops.pub/ https://badbits.dwebops.pub/
- RobotToaster 3mo agoSuddenly it looks a lot less decentralised.
- throwaway8388 3mo agoWell, badbits are only enforced on the centralized http gateways. LibGen CIDs would still resolve fine using the DHT as the decentralised discovery mechanism
- msm_ 3mo agoI don't know, it looks pretty decentralised to me? >The purpose of this list is to allow IPFS node operators (e.g. someone running a public IPFS gateway) to opt into not hosting previously flagged content. IPFS node operators, who are supposedly interested in hosting malicious content (and i2p-hosted phishings are a real problem) can OPT INTO using this list. In this case, I don't see how that's any problem for piracy - people can just use one of the bad/unfiltered nodes.
- hannesfur 3mo agoHaving worked on libp2p‘s DHT (Double Hashing for rust-libp2p) for a bit two years ago, it’s really great to see that there are improvements. To get to CDN level speeds though on dense networks, I still see it as an architectural flaw to not somehow encode network topology into the PeerID / identity in the DHT. A start would be to use the five RIRs. If you want to be more sophisticated, and I spent a lot of time theorising about this, you could have a dezentrally governed anycast IP address of Geo DNS to bootstrap new peers into their neighbourhood and couple that into their DHT identity. But do you want to put BGP into the hands of a decentralised system? Could you even do it in the governance structure of the internet? Btw when we were working on our project HyveOS, we used Batman-advs routing table to quickly (really really quick) bootstrap new peers into the system. Ah… sometimes i really miss working on this.
- deleted 3mo ago[deleted]
- deleted 3mo ago[deleted]
- yangm97 2mo agoWe shouldn’t expect bodies and companies that benefit from centralization to give us crumbs. Remember IPv6 global multicast? ISPs killed that on sight. We need to get encrypted mesh networking (Yggdrasil, CJDNS, FIPS etc) out there before it’s too late.
- davidwritesbugs 3mo agoSlightly tangential to the article, which seems interesting, but the main issue with IPFS was the horrendous performance of clients which I seem to recall related to having a refresh storms, sparse routing tables, unreachable peers as well as lookup speeds. Mostly the reputation was so bad that people didn't bother with it, I dismissed it for my own project. If your only users are crypto-grift projects you're in a bad place.
- hyp0thetical 3mo ago[flagged]
- hyp0thetical 3mo agoPlease optimise Pentium 2 for us!!
- hyp0thetical 3mo agoDid you ever try to keep files on a really good storage?
- gumboshoes 3mo agoAm I the only one who has never managed to get an IPFS file to successfully download?