23 lines
931 B
Markdown
Raw Normal View History

2023-06-10 00:17:41 +01:00
---
title: Discv5
---
`Discv5` is a decentralized and efficient peer discovery mechanism for the Waku Network. It uses a [Distributed Hash Table (DHT)](https://en.wikipedia.org/wiki/Distributed_hash_table) for storing `ENR` records, providing resistance to censorship. `Discv5` offers a global view of participating nodes, enabling random sampling for load distribution. It uses bootstrap nodes as an entry point to the network, providing randomized sets of nodes for mesh expansion. Please refer to the [Discv5](https://rfc.vac.dev/spec/33/) specification to learn more.
2023-06-14 04:34:58 +01:00
#### Pros
2023-06-10 00:17:41 +01:00
- Decentralized with random sampling from a global view.
- Continuously researched and improved.
2023-06-14 04:34:58 +01:00
#### Cons
2023-06-10 00:17:41 +01:00
- Requires lots of connections and involves frequent churn.
2023-06-10 00:53:16 +01:00
- Relies on User Datagram Protocol (UDP), which is not supported in web browsers.
## Overview
```mdx-code-block
import Discv5 from "@site/diagrams/_discv5.md";
<Discv5 />
```