Re:Theseus DHT Protocol
by sohle on Monday June 19, 2023 @09:10PM
(#36398520)
Hi, I wrote this post, and this is something I was wondering about the whole time. It seemed like TCP was a necessary compromise, but I wasn't sure how painful the overhead would be. If there are any notable examples you know of where this went wrong (or right) I'd be interested.
[ Parent
| on HN ]
Re:Theseus DHT Protocol
by KirillPanov on Wednesday June 21, 2023 @04:32AM
(#36415937)
> If there are any notable examples you know of where this went wrong
IPFS
Stop using sessionful protocols for DHTs. It. does. not. work.
This is true. Last time I looked at the DHT in IPFS it was full of kludges and workarounds for performance issues due to the fact that it uses TCP connections underneath.
If it helps, you may find that when you scale your DHT to 10000+ nodes you will start to have issues with building on TCP. Of course many DHTs never get to that scale. IPFS is an example of one that sits just above that mark and can't figure out why things don't work well.
For comparison, the BitTorrent DHT has 20 MILLION nodes and works fantastically.