Difference b/w Centralized and Peer to Peer Architecture?

Centralized Architecture

Centralized System is a type of network in which every node is connected to a single centralized system in which resources are served to other nodes by this system only.

If a resource is needed by any node, it is fetched from the centralized system. Any work or processing done by a node will be stored on the centralized system for later use.

Following are the advantages:

  • Cost effective (One centralized system is needed for the storage of resources).
  • If a node gets compromised or removed, then there is no issue because the data is lying on the centralized system.

Following are the dis-advantages:

  • If a centralized system goes down, the nodes are of no use.

Peer-to-Peer Architecture

Peer-to-peer network, also known as P2P, is a type of network in which every node is connected to each other and share resources among themselves without using any centralized system.

All nodes in this architecture acts as a server as well as client.
Torrents are the good example of peer to peer architecture.

Following are the advantages:

  • Resource fetch time will be less, as it can fetch from the nearest peer/node.
  • If a node is busy or goes down, it can switch to another node for fetching.

Following are the dis-advantages:

  • Multiple tasks need to be done on each node (Security, backup, user passwords etc.).
  • Redundancy (Repetition) is the main problem in P2P, so need huge space.