DS L2. What are main types of communication in DS? Flashcards
What are the main types of communication in DS?
- Remote Procedure Calls (RPC)
- Message Passing
- Publish-Subscribe
- Remote Method Invocation (RMI)
- Distributed Objects
What are remote procedure calls?
RPC allows a program to execute procedures or functions on a remote server as if they were local.
What is message passing?
Message passing involves sending and receiving messages between distributed components, often using messaging protocols like MQTT or AMQP. Messages can contain various types of data, such as commands, requests, or notifications, and are typically sent asynchronously between components.
What is publish-subscribe?
Publish-Subscribe (Pub/Sub) is a messaging pattern where publishers send messages to a central message broker, which then distributes them to subscribers based on predefined topics or channels. Publishers and subscribers are decoupled from each other, allowing for flexible communication patterns and dynamic scalability.
What is remote method invocation?
Remote Method Invocation (RMI) is similar to RPC but specific to object-oriented programming languages, allowing objects in different address spaces to invoke methods on each other.
What are distributed objects?
Distributed Objects involve the use of distributed object technologies like CORBA or DCOM, where objects in a distributed system can interact with each other as if they were local by using standardized interfaces and protocols.
What is the purpose of communication in DS?
It enables different components in a distributed system to interact and coordinate effectively.
What is communication in DS, how does it work?
Communication in distributed systems encompasses various methods through which components interact and exchange information across a network of interconnected devices.
What is the purpose of RPC?
RPC allows programs to execute code on different nodes of a distributed system without the complexities of low-level network programming.
How does RPC work?
When a client invokes an RPC, it sends a request to the server, which executes the requested procedure and returns the results to the client.
What is the purpose of message passing?
Message passing enables decoupled communication between distributed entities, allowing them to interact without direct dependencies on each other.
What is the purpose of Publish-Subscribe?
Pub/Sub is commonly used in distributed systems for event-driven architectures, real-time data processing, and broadcasting information to multiple recipients.
What is the purpose of RMI?
RMI allows for transparent communication between distributed objects, abstracting away the complexities of network communication and enabling seamless interaction in distributed applications.
What is the purpose of distributed objects?
Distributed objects promote reusability, modularity, and interoperability in distributed systems, allowing developers to build complex applications using distributed components.
Why are different communication methods important?
Different methods and techniques are suited to different use cases and requirements. By understanding and leveraging these communication mechanisms, developers can design and implement distributed applications that meet the demands of modern computing environments.