# Peer-to-Peer (P2P)

> Computers that share work and data with each other. There is no main server.

**Field:** Software Development  
**Category:** Architecture  
**Also known as:** Peer-to-Peer Network, P2P Network, P2P Architecture

## Think of it like

It is like kids swapping cards in a circle. No teacher hands them out.

## Definition

Peer-to-peer is a design where computers share work and data with each other, with no central server. Each computer, called a peer, is both a client and a server. It asks others for data and sends data to them. Adding peers adds more power, so it can grow at low cost. File sharing with BitTorrent works this way.

## Example

Jack downloads a large Linux file with BitTorrent. His computer gets pieces from hundreds of peers and sends pieces on to others at the same time.

## Why it matters

There is no single server to pay for or to fail. The more people join, the more there is to share.

## Common mistake

Trusting every peer. Anyone can join, so each piece of data must be checked, for example with a hash, before it is used.

## Three principles

- **Every node equal.** Each is client and server.
- **No center.** Nothing single to fail.
- **Grows with users.** More peers, more power.

## Related terms

- [Client-Server Architecture](https://learn.benibix.com/term/development/client-server-architecture)
- [Distributed System](https://learn.benibix.com/term/development/distributed-system)
- [Single Point of Failure](https://learn.benibix.com/term/development/single-point-of-failure)
- [Scalability](https://learn.benibix.com/term/development/scalability)
- [Horizontal Scaling](https://learn.benibix.com/term/development/horizontal-scaling)

![Two networks side by side. On the left, client-server: five computers each linked only to one server in the middle. On the right, peer-to-peer: five computers each linked to several of the others, with no server at all.](https://learn.benibix.com/diagrams/dev6-peer-to-peer.svg)

---

Source: https://learn.benibix.com/term/development/peer-to-peer
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
