Comments (6)
How does orbit-db determine which db wins during the sync?
from field-manual.
This is not yet figured out for orbit-db. orbit-db is a CRDT-modelled thing-- and it's in the leveldb or sqllite "db" category. (it may make sense to make clusters of it, but not yet there)
from field-manual.
Possible we may be able to use something like https://github.com/ipfs/ipfs-cluster -- (which maybe is just a libp2p-cluster) to do this
from field-manual.
So is the idea that under the current system, every node stores a complete copy of the entire database, but it's still possible for two nodes to sync their copies?
Edit: Ah, and I think the part that I was missing was that two nodes that are both on the global IPFS network and have databases with identical names will automatically sync with each other, yes?
from field-manual.
@raptortech-js that's the idea, yeah! Currently all databases are in the public network and open to anyone. Obviously this is not what we want and we're working on IPFS primitives that orbit-db can use to provide mechanisms and protocol-level guarantees for private/access controlled databases. Today, if you need such functionality, you have to do it on application level.
from field-manual.
Moving to the Field Manual for deeper discussion
from field-manual.
Related Issues (20)
- How does OrbitDB update the heads (tails?) (oplog?) on immutable IPFS HOT 3
- Error: No resolver found for codec "undefined" HOT 3
- Update Code Snippets to latest js-IPFS HOT 1
- Publishing Options
- Chapter on customizing OrbitDB HOT 2
- Ipfs.node.dag.get fails in Chapter 2 of the tutorial HOT 9
- TypeError: Cannot read property 'length' of undefined HOT 2
- 01_Basics.md: why do you use window.something for a nodeJS code? HOT 3
- [01_Tutorial/02_Managing_Data.md]: using await in node REPL HOT 2
- In `04_P2P_Part_1`, `NPP.connectToPeer` got `Error: Circuit relay dial failed as addresses did not have peer id` HOT 6
- field-manual/1-Basics outdated? HOT 6
- In 01_Tutorial I have some confusion
- Code example in 02 Managing Data errors
- IPFS Codecs issue HOT 1
- Outdated Tutorial [Chapter 1 & 2]
- Replication when 2 orbitdb apps connected to a single node IPFS does not work HOT 2
- Scaling database is not clear from the manual
- Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in package.json HOT 2
- Database is not replicating in browser, Error(PublishError.InsufficientPeers)
- SQL standards
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from field-manual.