DS L2. What are main types of communication in DS? Flashcards

1
Q

What are the main types of communication in DS?

A
  1. Remote Procedure Calls (RPC)
  2. Message Passing
  3. Publish-Subscribe
  4. Remote Method Invocation (RMI)
  5. Distributed Objects
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are remote procedure calls?

A

RPC allows a program to execute procedures or functions on a remote server as if they were local.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is message passing?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is publish-subscribe?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is remote method invocation?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are distributed objects?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the purpose of communication in DS?

A

It enables different components in a distributed system to interact and coordinate effectively.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is communication in DS, how does it work?

A

Communication in distributed systems encompasses various methods through which components interact and exchange information across a network of interconnected devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the purpose of RPC?

A

RPC allows programs to execute code on different nodes of a distributed system without the complexities of low-level network programming.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does RPC work?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the purpose of message passing?

A

Message passing enables decoupled communication between distributed entities, allowing them to interact without direct dependencies on each other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the purpose of Publish-Subscribe?

A

Pub/Sub is commonly used in distributed systems for event-driven architectures, real-time data processing, and broadcasting information to multiple recipients.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the purpose of RMI?

A

RMI allows for transparent communication between distributed objects, abstracting away the complexities of network communication and enabling seamless interaction in distributed applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the purpose of distributed objects?

A

Distributed objects promote reusability, modularity, and interoperability in distributed systems, allowing developers to build complex applications using distributed components.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why are different communication methods important?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Why is effective communication important in DS?

A

Effective communication is essential for building robust, scalable, and resilient distributed systems.