Become a geek #2: The role of the DHT in FlowingMail

The DHT, or Distributed Hash Table is a big database containing values identified by an ID.

Each node in the FlowingMail network is responsible for the storage of the values identified by an ID similar to the node’s ID.
We saw in a previous article how the nodes find other nodes with a specific ID.

Because of the DHT redundancy (each value is stored in several nodes) the DHT is used to store information that has to be always available.

The following values are published to the DHT:

Therefore a node can always:

Once a recipient obtains the list of nodes that contain the blocks of his emails then it can start downloading the mails from them.

More information about the theory of the DHT: Kademlia white paper.