Skip to content

Commit 4469f95

Browse files
authored
Merge pull request #10402 from mendix/qt-ebreview
Review Event Broker doc
2 parents aa11e65 + ab22c95 commit 4469f95

File tree

1 file changed

+49
-56
lines changed
  • content/en/docs/marketplace/platform-supported-content/services

1 file changed

+49
-56
lines changed

content/en/docs/marketplace/platform-supported-content/services/event-broker.md

Lines changed: 49 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ Users within the company's email domain that have a Mendix login can participate
3939

4040
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_internal_user.png" >}}
4141

42-
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_internal_user_2.png" >}}
42+
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_internal_user_2.png" width="300" >}}
4343

4444
Users that are not part of the customer organization (not within the email domain of the customer) can be invited with the same levels of access. Such users still require a standard Mendix login.
4545

46-
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_external_user.png" >}}
46+
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_external_user.png" width="300" >}}
4747

4848
#### Spaces and Environments{#spaces}
4949

5050
Spaces define which applications can exchange events with each other. When Business Events is enabled for an environment, it is placed in an Event Broker space based on the environment name. This enables apps deployed under the same space to publish and consume events. For example, apps in acceptance environment can only exchange events with other apps' acceptance environments. You can check the space of an app's environment on the [Event Broker Manager](https://broker.mendix.com/) page.
5151

5252
Spaces are created and assigned based on the app environment name and allow isolation of your business events. The default behavior can be changed if needed. Contact [Mendix Support](https://support.mendix.com/) if you would like to change the space of a specific app environment.
5353

54-
See [Enabling the Mendix Event Broker Service](#enable-mx-event-broker), above, for more information.
54+
See the [Enabling the Mendix Event Broker Service](#enable-mx-event-broker) section above for more information.
5555

5656
#### Topics and Channels {#topics-channels}
5757

@@ -63,10 +63,12 @@ Events published by Free Apps are published to one shared company channel on a m
6363

6464
The Mendix Event Broker allows access control to be applied down to the event level. Each application can be granted or denied access to events using the [Event Broker Manager](https://broker.mendix.com/).
6565

66+
##### Types of Access
67+
6668
The overview page contains a list of applications by environment within the organization's event landscape. The table contains columns that provide cases with exceptions:
6769

68-
* **Implemented but no access** - an application has implemented an event that it is not allowed to access, guaranteeing a failure to subscribe to and/or publish the event
69-
* **Has access but not implemented** - an application has been provided with more access than is required and you could make it more secure.
70+
* **Implemented but no access** an application has implemented an event that it is not allowed to access, guaranteeing a failure to subscribe to and/or publish the event
71+
* **Has access but not implemented** an application has been provided with more access than is required and you could make it more secure.
7072

7173
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_access_control_overview.png" >}}
7274

@@ -76,16 +78,18 @@ Selecting the specific application provides an overview of the application's imp
7678

7779
From this view, access to the individual events can be configured. Changes take effect immediately when **Apply Changes** is clicked.
7880

79-
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_access_control_overview_3.png" >}}
81+
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_access_control_overview_3.png" width="300" >}}
82+
83+
##### Default Behavior
8084

81-
From the main overview page, an administrator can assign the default behavior of applications when they deploy to an environment for the first time by changing the configuration in the **Manage Default Access** dialog box.
85+
From the main overview page, an administrator can assign the default application behavior when they deploy to an environment for the first time by changing the configuration in the **Manage Default Access** dialog box.
8286

83-
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_access_control_defaults.png" >}}
87+
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_access_control_defaults.png" width="300" >}}
8488

8589
From here, you can manage the default access settings:
8690

87-
* Allowing **An app can access events defined in it** – allows newly-deployed applications to always have access to any events defined within that application (see [Creating a New Business Event Service](/appstore/services/business-events/#two-way-be-create) for more information)
88-
* Administrators can check two options under **For other events, in all environments, the app can:**
91+
* **An app can access events defined in it** enabling this setting allows newly-deployed applications to always have access to any events defined within that application (see [Creating a New Business Event Service](/appstore/services/business-events/#two-way-be-create) for more information)
92+
* **For other events, in all environments, the app can:**
8993

9094
* **Publish events it implements**
9195
* **Subscribe to events it implements**
@@ -115,7 +119,7 @@ See [CloudEvents](https://github.com/cloudevents/spec/blob/v1.0.1/spec.md#requir
115119

116120
For HTTP Bridges, an additional HTTP header is required for authentication.
117121

118-
* **Authorization**: The value must be set as a Bearer token using the Personal Access Token (PAT) generated during bridge configuration.
122+
* **Authorization** The value must be set as a Bearer token using the Personal Access Token (PAT) generated during bridge configuration.
119123
For example: `Authorization: Bearer <your-personal-access-token>`
120124

121125
This header must be included in all HTTP requests sent to the Mendix Event Broker via the HTTP Bridge. For details on how to obtain your Bearer token, see [Using the HTTP Bridge](#using-the-http-bridge).
@@ -133,7 +137,7 @@ Technical Contacts with a license to the Mendix Event Broker can manage this fea
133137
1. Click **Create a Bridge** to create a new bridge.
134138
2. Select either an **AWS SQS** or an **HTTP** service to configure.
135139

136-
An AWS SQS bridge uses the [Amazon Simple Queue Service](https://aws.amazon.com/sqs/). The HTTP Bridge uses HTTP requests to send events from external systems to the Mendix Event Broker. The HTTP bridge is one-way: **HTTP to Event Broker**.
140+
* An AWS SQS bridge uses the [Amazon Simple Queue Service](https://aws.amazon.com/sqs/). The HTTP Bridge uses HTTP requests to send events from external systems to the Mendix Event Broker. The HTTP bridge is one-way: **HTTP to Event Broker**.
137141

138142
3. Click **Next** to continue with creating your bridge.
139143

@@ -142,15 +146,15 @@ Technical Contacts with a license to the Mendix Event Broker can manage this fea
142146

143147
### Configuring a Bridge with AWS SQS {#bridge-with-aws-sqs}
144148

145-
The creation process for AWS SQS bridges contains two further steps on the Mendix side and policies that need to be implemented on the AWS side.
149+
The creation process for AWS SQS bridges includes two further steps on the Mendix side and policies that need to be implemented on the AWS side.
146150

147151
#### Configuration Details
148152

149-
The next step of configuration is to select a [Space](#spaces), Name, and Region for the bridge to operate in.
153+
1. Select a [Space](#spaces), Name, and Region for the bridge to operate in.
150154

151155
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/event_broker_bridges_create_3_sqs.png" class="no-border" >}}
152156

153-
Click **Next** to continue the configuration.
157+
2. Click **Next** to continue the configuration.
154158

155159
#### Choose the Business Events to Integrate
156160

@@ -159,26 +163,24 @@ The user must select events from the Event Broker landscape of events to send to
159163
1. Select **Add Business Events** and search for the appropriate events.
160164
2. Select the checkbox for the event(s) you want to add, then click **Select**.
161165

162-
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/event_broker_bridges_create_4_sqs.png" class="no-border" >}}
166+
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/event_broker_bridges_create_4_sqs.png" class="no-border" width="400" >}}
163167

164-
3. Configure each event with its own SQS URL for each direction that the event will be integrated.
168+
3. Configure each event with its own SQS URL for each direction the event will be integrated.
165169

166-
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/event_broker_bridges_create_5_sqs.png" class="no-border" >}}
170+
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/event_broker_bridges_create_5_sqs.png" class="no-border" width="400" >}}
167171

168172
4. Click **Next** to continue.
169173

170174
5. Confirm the configuration with the AWS Access Policy.
171175

172-
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/event_broker_bridges_create_6_sqs.png" class="no-border" >}}
176+
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/event_broker_bridges_create_6_sqs.png" class="no-border" width="400" >}}
173177

174178
6. After all events have been configured, click **Start** to start the Mendix Event Broker Bridge. This process will take several minutes to complete. You can also choose to **Start Later**.
175179

176-
You will be taken back to the overview page.
180+
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/event_broker_bridges_overview_sqs.png" class="no-border" width="400" >}}
177181

178182
Once the Mendix Event Broker Bridge has been successfully deployed, its configuration and status can be viewed on the **Overview** page.
179183

180-
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/event_broker_bridges_overview_sqs.png" class="no-border" >}}
181-
182184
#### Configure AWS Access Policy
183185

184186
You need to configure AWS access policies for both sending and receiving messages.
@@ -227,52 +229,45 @@ Add this object to your Access Policy of the AWS SQS queue if it is receiving me
227229

228230
### Configuring a Bridge with HTTP {#bridge-with-http}
229231

230-
The creation process for HTTP bridges contains two further steps:
231-
232232
#### Configure Service
233233

234-
Configure the service by doing the following:
234+
Configure the service by filling out the following:
235+
236+
* **Event Broker Space** – the space where the bridge will operate
237+
* **Bridge Name** – the name you want to call the bridge
238+
* **AWS region** – the AWS region where your bridge operates
235239

236-
1. Select the **Event Broker Space** – the space where the bridge will operate.
237-
2. Enter the **Bridge Name** – the name you want to call the bridge.
238-
3. Select the **AWS region** - the AWS region where your bridge operates.
239-
4. Click **Next** to connect events to your bridge.
240+
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/http/event_broker_bridges_create_3_http.png" class="no-border" width="400" >}}
240241

241-
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/http/event_broker_bridges_create_3_http.png" class="no-border" >}}
242+
Click **Next** to connect events to your bridge.
242243

243244
#### Connect Events
244245

245246
Initially, you will have no business events. Choose the business events to integrate by doing the following:
246247

247-
1. Click **Add Business Events** to open a dialog displaying all events managed by the Event Broker (including Mendix app-defined and uploaded AsyncAPI events).
248-
249-
Only events that can **subscribe** are displayed, as this bridge is one-way.
250-
251-
2. Select the event(s) you want to integrate.
252-
253-
Once events are selected, the URL for the HTTP connection is automatically generated. No further configuration is required.
254-
248+
1. Click **Add Business Events** to open a dialog displaying all events managed by the Event Broker (including Mendix app-defined and uploaded AsyncAPI events). Only events that can **subscribe** are displayed, as this bridge is one-way.
249+
2. Select the event(s) you want to integrate. Once events are selected, the URL for the HTTP connection is automatically generated. No further configuration is required.
255250
3. Click **Next** to integrate the chosen business events.
256251

257-
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/http/event_broker_bridges_create_4_http.png" class="no-border" >}}
252+
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/http/event_broker_bridges_create_4_http.png" class="no-border" width="400" >}}
258253

259254
#### Confirmation
260255

261256
On the confirmation screen you can do the following:
262257

263-
* Click **Start** to the bridge immediately
264-
* Click **Start Later** to continue without starting the bridge.
258+
* Click **Start** to start the bridge immediately
259+
* Click **Start Later** to continue without starting the bridge
265260

266-
Once The HTTP Bridge has been configured, its configuration and status can be viewed on the **Overview** page.
261+
Once The HTTP Bridge has been configured, its configuration and status can be viewed on the **Overview** page.
267262

268-
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/http/event_broker_bridges_create_6_http.png" class="no-border" >}}
263+
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/http/event_broker_bridges_create_6_http.png" class="no-border" >}}
269264

270265
#### Using the HTTP Bridge {#using-the-http-bridge}
271266

272267
To run the HTTP bridge from your client, include a Bearer token in the request header.
273268

274-
1. Open the HTTP bridge details using **Options** ({{% icon name="three-dots-menu-horizontal" %}}) menu on the overview.
275-
2, Add the **Bearer token**
269+
1. Open the HTTP bridge details using **Options** ({{% icon name="three-dots-menu-horizontal" %}}) menu on the Overview page.
270+
2. Add the **Bearer token**.
276271

277272
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/bridges/http/event_broker_bridges_create_7_http.png" class="no-border" >}}
278273

@@ -326,21 +321,19 @@ The Mendix Event Broker allows users to upload an AsyncAPI document for these ex
326321

327322
Technical Contacts with a license to the Mendix Event Broker can manage this feature from the **Uploaded Events** tab on the [Event Broker Manager](https://broker.mendix.com/) page.
328323

329-
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_ede_get_started.png" >}}
324+
To begin, click **Get Started** or **Upload AsyncAPI Document**.
330325

331-
To begin, click **Get Started** or **Upload AsyncAPI Document**, which involves uploading a file, verifying event information, and selecting spaces.
326+
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_ede_get_started.png" >}}
332327

333328
#### Upload an AsyncAPI File
334329

335330
Upload an AsyncAPI contract based on the [AsyncAPI format](#asyncapi-format). If there are any errors with the content or file format, an error box will display a list of the issues found.
336331

337332
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_ede_create_1.png" >}}
338333

339-
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_ede_create_1_errors.png" >}}
340-
341334
#### Verify File Information
342335

343-
The details of the uploaded file are extracted in the Verify section. This allows you to confirm that all information is accurate and meets the required expectations.
336+
The details of the uploaded file are extracted in the **Verify** section. This allows you to confirm that all information is accurate and meets the required expectations.
344337

345338
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_ede_create_2.png" >}}
346339

@@ -396,11 +389,11 @@ To use an uploaded event in a Bridge, you must configure a [Bridge with AWS SQS]
396389

397390
To use an uploaded event in an application, download the AsyncAPI contract for Studio Pro and import it as a new business event in your Mendix application. The download button is available on the [Service Details](#service-details) page.
398391

399-
After downloading the file, open your Studio Pro app and import the file as a new business event using the **Use an existing business event service** option.
392+
Use the **Use an existing business event service** option to import the file as a new business event.
400393

401394
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_ede_import_file.png" >}}
402395

403-
Click **OK**, and the new business event is created and ready to be used with the same features as any other imported event.
396+
Click **OK**. This creates the new business event that is ready to be used with the same features as any other imported event.
404397

405398
{{< figure src="/attachments/appstore/platform-supported-content/services/event-broker/event_broker_ede_imported_file.png" >}}
406399

@@ -420,13 +413,13 @@ Externally defined events are provided to the Event Broker via an AsyncAPI docum
420413

421414
The mandatory information required in the file includes:
422415

423-
* **Title** - the service name.
424-
* **Message** - represents the business events.
425-
* **Payload** - the attributes that form the message.
416+
* **Title** the service name
417+
* **Message** represents the business events
418+
* **Payload** the attributes that form the message
426419

427420
{{% alert color="info" %}}
428421

429-
Message names must be unique. Duplicate events cannot be uploaded even if it is deployed anywhere in the Mendix space or uploaded before.
422+
Message names must be unique. Duplicate events cannot be uploaded if it is deployed anywhere in the Mendix space or uploaded before.
430423

431424
{{% /alert %}}
432425

0 commit comments

Comments
 (0)