You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/docs/concepts/generic-broker.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
2
-
The generic broker concept is an abstraction of all the Broker supported by OpenTransit. It contains all the common features of all the supported brokers.
2
+
The generic broker concept is an abstraction of all the Brokers supported by OpenTransit. It contains all the common features of all the supported brokers.
3
3
4
4
## Common Broker Features
5
5
@@ -8,11 +8,11 @@ In practice, these common features cover the majority of real-world use cases.
8
8
9
9
For example:
10
10
11
-
- All of them offer a **Publish Endpoint** where messages can be published.
11
+
- All of them offer **Publish Endpoints** where messages can be published.
12
12
- RabbitMQ calls this an **Exchange**.
13
13
- Azure Service Bus, ActiveMQ, and Amazon SNS call it a **Topic**.
14
14
15
-
- All of them provide a **Receive Endpoint**, typically referred to as a**Queue**, where consumers subscribe.
15
+
- All of them provide **Receive Endpoints**, typically referred to as **Queue**, where consumers subscribe.
16
16
17
17
Producers publish messages to Publish Endpoints, and Consumers subscribe to Receive Endpoints.
Copy file name to clipboardExpand all lines: documentation/docs/patterns/commands-and-events/overview.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ Examples:
50
50
The messages and Consumers classes are kept on the **Shared** Project.
51
51
52
52
### Command Implementation
53
-
Since the [Receive Endpoint](generic-broker.md#receive-endpoint) natively implements the [Competing Consumers Pattern](https://www.enterpriseintegrationpatterns.com/patterns/messaging/CompetingConsumers.html),
53
+
Since the [Receive Endpoint](../../concepts/generic-broker.md#receive-endpoint) natively implements the [Competing Consumers Pattern](https://www.enterpriseintegrationpatterns.com/patterns/messaging/CompetingConsumers.html),
54
54
no additional configuration is needed.
55
55
56
56
In the [Example Project](https://github.com/OpenTransitLab/Tutorials/tree/main/CommandsAndEvents) you will see both **ApplicationA** and **ApplicationB** subscribed for the `ProcessOrder` message.
Both `IBus` and `ConsumeContext<T>`act as Producers, because you can call `Publish(T message)` on either of them.
68
+
Both `IBus` and `ConsumeContext<T>`are Producers. You may call `Publish(T message)` on either of them.
69
69
70
70
When publishing inside a [Consumer](#publishing-from-inside-a-consumer), it is **highly recommended** to use the `ConsumeContext<T>` Producer as we have done in the SubmitOrderConsumer. We’ll discuss why in the dedicated Producers section.
71
71
@@ -106,16 +106,17 @@ In this step, we perform three main tasks:
106
106
107
107
3.**Register the consumers**(if any)
108
108
109
-
All the above 3 tasks is done onthe`Program.cs` of OrderService
109
+
All the above 3 tasks is done on the`Program.cs` of OrderService
However, the Client doesn't consume any messages. So no Consumer is registered, and the `ConfigureEndpoints()` method isn't called.
112
113
113
114
---
114
115
115
116
### 5. The Topology:
116
117
117
-
This example uses **[broker-agnostic](../concepts/topology#broker-agnostic-way)** configuration, so you don’t need to understand the underlying broker [topology](../concepts/topology) for basic communication.
118
-
Here, we only used the `UsingRabbitMq` method to provide the Connection Configuration and to configure the Publish and Receive [Endpoints](../concepts/generic-broker#generic-broker-terminologies)(a generic concept among all the brokers) on the broker.
118
+
This example uses **[broker-agnostic](../concepts/topology#broker-agnostic-way)** configuration, so you don’t need to understand the broker's internal[topology](../concepts/topology) for basic communication.
119
+
Here, we only used the `UsingRabbitMq` method to provide the Connection Configuration and to configure the Publish and Receive [Endpoints](../concepts/generic-broker#endpoints)(a generic concept among all the brokers) on the broker.
119
120
120
121
Since this Configurations aren't RabbitMQ specific, and you may use any other broker here and, the Message Communication would work fine. We will add examples with other brokers soon.
121
122
@@ -125,6 +126,8 @@ Since this Configurations aren't RabbitMQ specific, and you may use any other br
125
126
In this project, we work with two message types: **SubmitOrder** and **ProcessOrder**.
126
127
Based on these message types, the topology is set up in the following way:
0 commit comments