Live data from Hacker News

OrbitDB: Peer-to-peer databases for the decentralized web

github.com

21–30 of 119 posts

Re: OrbitDB: Peer-to-peer databases for the decentralized web

#23
post #3

eventually consistent database Is an oxymoron

When you get down to it, between cache coherency across CPUs and memory, disk flush delays and disk caches, every database is eventually consistent.

And if you want to operate over a distributed network, which means you WILL have network partitions, then you are subject to CAP and will need eventual consistency mechanisms.

Re: OrbitDB: Peer-to-peer databases for the decentralized web

#24
post #9

p2p DB in JS using CRDT. That sounds a lot like GUN. How does OrbitDB compare to GUN?

One of the main difference is it is based on IPFS

What does GUN use instead of IPFS? What are the pros and cons of the 2 approaches?

Re: OrbitDB: Peer-to-peer databases for the decentralized web

#25

p2p DB in JS using CRDT. That sounds a lot like GUN. How does OrbitDB compare to GUN?

Gun is a graph database. I don't think Orbit uses a graph system, but instead uses feeds or KV stores. So that's a another difference. But Gun can use IPFS as a storage adapter if you wanted.

Re: OrbitDB: Peer-to-peer databases for the decentralized web

#27
post #17
post #12

Earlier quoted context omitted.

Another one is that the source code of OrbitDB is not completely obfuscated.

Can you elaborate? Source code to GUN is right here: https://github.com/amark/gun/tree/master/src

Yes sorry for not doing this. In the source code folder, please open any random file and try to understand what the code does.

I once tried to fix a bug that I found in GUN but I gave up after just trying to figure out what the code is supposed to do.

Re: OrbitDB: Peer-to-peer databases for the decentralized web

#28
post #17
post #12

Earlier quoted context omitted.

Another one is that the source code of OrbitDB is not completely obfuscated.

Can you elaborate? Source code to GUN is right here: https://github.com/amark/gun/tree/master/src

Have you tried reading it?

( Not sure "obfuscated" is the word I'd use, though. )

Re: OrbitDB: Peer-to-peer databases for the decentralized web

#29
post #27
post #17

Earlier quoted context omitted.

Can you elaborate? Source code to GUN is right here: https://github.com/amark/gun/tree/master/src

Yes sorry for not doing this. In the source code folder, please open any random file and try to understand what the code does. I once tried to fix a bug that I found in GUN but I gave up after just trying to figure out what the code is supposed to do.

Wow. You are right. What the heck.

Re: OrbitDB: Peer-to-peer databases for the decentralized web

#30

It looks like they have an identity provider, so this must support authentication. Link: https://github.com/orbitdb/orbit-db-identity-provider What I'd like to know is do they support authorization?

I believe it generates a pub/priv key pair and stores it in localstorage.
Post reply on HN