A distributed system is a group of independent computers, called nodes, that work together as a single system. These nodes communicate over a network to share data, resources, and tasks to achieve a common goal. It ensures coordination between multiple systems while appearing unified to the user.
Consists of multiple independent computers (nodes) working together in a network.
Nodes communicate and share data, resources, and tasks efficiently.
Appears as a single system to users, and failure of one node does not stop the entire system.
Example: An online shopping platform like Amazon uses distributed systems where multiple servers handle different tasks such as product search, payments, and order processing. Even if one server fails, the platform continues to function without affecting the user experience.
These examples show how distributed systems are used in real applications to handle large-scale data, improve performance, and ensure reliability.
Online Banking Systems: Banks use distributed systems where branches and ATMs share data with central servers while operating independently, ensuring continuous transactions
E-Commerce Platforms: Platforms like Amazon or Flipkart process orders, payments, and inventory across multiple servers to handle high traffic and ensure smooth user experience
Social Media Platforms: Applications like Facebook, Twitter, and Instagram use multiple data centers to store and process massive user data efficiently
Online Gaming Systems: Multiplayer games like PUBG distribute game states across servers to reduce latency and provide real-time gaming experience
Types of Distributed Systems
Distributed systems can be classified into different types based on how nodes are organized, how they communicate, and how tasks are distributed across the system.
1. Client-Server Systems
A client-server system is a distributed system where a central server provides services and multiple clients request those services over a network.
Server manages data and processing
Clients send requests and receive responses
Example: Gmail or online banking systems.
2. Peer-to-Peer (P2P) Systems
A peer-to-peer system is a distributed system where all nodes are equal and can act as both client and server without a central authority.
No central server exists
Nodes directly share resources with each other
Example: BitTorrent, blockchain networks.
3. Clustered Systems
A clustered system is a group of closely connected computers that work together as a single system to improve performance and reliability.
Nodes work in a tightly connected network
Tasks are shared for high performance
Example: Google search clusters, supercomputers.
4. Cloud-Based Distributed Systems
A cloud-based distributed system uses cloud infrastructure where computing resources are distributed across multiple data centers and accessed over the internet.
Resources are scalable on demand
Services are accessed over the internet
Example: AWS, Microsoft Azure, Google Cloud.
Working
A distributed system works by dividing tasks among multiple nodes, which communicate and coordinate over a network to achieve a common goal.
Each node runs its own application and maintains local data
Nodes communicate through the network using protocols or middleware services
Data and tasks are distributed across nodes for parallel processing
Nodes process data locally and share results with other nodes when required
Data may be stored in distributed databases instead of a single centralized system
The system ensures coordination, consistency, and fault tolerance across all nodes