Skip to content

Commit ff6df1b

Browse files
update
1 parent 44b9298 commit ff6df1b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/defradb/Conceptual/peer-to-peer-conceptual.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ Peer-to-peer (P2P) networking is a way for devices or peers to communicate direc
66

77
DefraDB is a decentralized database built on this idea. Instead of the traditional client-server setup, DefraDB uses P2P networking so apps can sync data locally and share information without relying on a trusted middleman. This supports a decentralized, private, and user-focused approach.
88

9+
:::tip[Key Points]
10+
11+
DefraDB leverages P2P networking via libp2p to synchronize data directly between distributed nodes, enabling **offline-first applications without a central server**.
12+
13+
**Key capabilities:**
14+
- **Passive replication** – Automatic broadcasting of updates via PubSub (similar to UDP)
15+
- **Active replication** – Direct, point-to-point synchronization between specific nodes (similar to TCP)
16+
- **NAT traversal** – Circuit relays and hole punching to connect nodes behind firewalls
17+
- **Resilient synchronization** – Updates queue offline and sync automatically when connectivity returns
18+
19+
DefraDB stores documents as update graphs (similar to Git) using IPLD blocks distributed across nodes.
20+
21+
:::
22+
923
## Key concepts
1024

1125
### Libp2p networking framework

0 commit comments

Comments
 (0)