Peer-to-Peer
Modelo em que computadores se conectam e trocam recursos diretamente entre si, sem depender de um servidor central que intermedie a comunicação.
Key points
- Peer-to-peer (P2P) is the model in which computers connect and exchange resources directly with each other, without a central server.
- Each participant, called a node, acts simultaneously as client and server, contributing to and consuming resources from the network.
- It is the architecture on which cryptocurrencies operate: it allows value to be transferred between people without an intermediary authorizing each operation.
What is peer-to-peer?
Peer-to-peer describes a network in which two or more computers share work or resources without relying on a central server that coordinates everything. Instead of a hierarchical structure, all participants have an equivalent role. It was this idea that allowed Bitcoin to be described as a peer-to-peer electronic cash system.
How it works
In a P2P network, each node connects to others and exchanges information directly. There is no single point that stores all the data or that needs to be online for the system to work. If a node leaves, the others continue operating, which gives the network resilience. New participants join by copying data from their neighbors and then contributing on their own.
In the case of cryptocurrencies, nodes propagate transactions and blocks among themselves until the entire network has the same information. Each node independently verifies whether the rules were followed, which removes the need to trust a coordinator. This distributed validation is what allows strangers to transact without an intermediary.
The absence of a center also means there is no single point of failure or control, a characteristic that makes it difficult to censor or shut down the network.
Why it matters
The peer-to-peer model is what makes it possible to transfer value directly between two parties, the basis of every crypto payment. For the user, it explains why a transaction does not need approval from a bank: it is validated by the network of participants itself, at any time.
Limitations
Peer-to-peer networks require many participants to keep copies and validate data, which limits processing capacity and can raise costs during periods of congestion. Propagating information between nodes also takes time, and security depends on having enough distributed participants. Even so, it is precisely this centerless architecture that gives these networks resistance to censorship and to single points of failure.