25 lines
981 B
Markdown
Raw Normal View History

2023-06-10 00:17:41 +01:00
---
title: Discv5
2023-11-23 12:01:32 +01:00
hide_table_of_contents: true
2023-06-10 00:17:41 +01:00
---
2024-05-16 18:22:15 +01:00
`Discv5` is a decentralised 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 randomised sets of nodes for mesh expansion. Have a look at the [Discv5](https://rfc.vac.dev/waku/standards/core/33/discv5) specification to learn more.
2023-06-10 00:17:41 +01:00
2023-06-14 04:34:58 +01:00
#### Pros
2023-06-10 00:17:41 +01:00
- Decentralised with random sampling from a global view.
2023-06-10 00:17:41 +01:00
- 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 />
2024-05-16 18:22:15 +01:00
```