Skip to content

Commit b547d22

Browse files
authored
Merge pull request #126 from Particular/docs-improvements
added youtube and arranged the docs
2 parents b4a648c + 8a5bf6a commit b547d22

File tree

2 files changed

+57
-48
lines changed

2 files changed

+57
-48
lines changed

README.md

Lines changed: 44 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ This showcase consists of 4 processes hosting MassTransit message producers and
44

55
![System Overview](docs/diagram.svg "width=680")
66

7-
## Launching the Showcase in Docker
7+
## Launching the Showcase in Docker with **RabbitMQ**
88

99
To help getting started we have created a few docker compose files that orchestrate all this setup for you.
1010

11-
* First, make sure you've pulled down the repository to your machine.
12-
* Second, open a terminal and navigate to the `src` folder in your local copy of the repository.
13-
* Third, run the following command:
11+
- First, make sure you've pulled down the repository to your machine.
12+
- Second, open a terminal and navigate to the `src` folder in your local copy of the repository.
13+
- Third, run the following command:
1414

1515
```cmd
1616
docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-rabbitmq.yml --env-file rabbit.env up -d --build
1717
```
1818

1919
![Docker Compose Up](docs/compose-up.png "Docker Compose up results")
2020

21-
### (Alternative) Run in Docker against **Azure Service Bus**
21+
### (Alternative) Run in Docker with **Azure Service Bus**
2222

2323
<details>
2424

@@ -37,44 +37,45 @@ docker compose -p particular-platform-showcase -f docker-compose-base.yml -f com
3737

3838
</details>
3939

40-
### (Alternative) Run from an IDE
40+
## (Alternative) Run from an IDE
4141

4242
<details>
4343

44-
TIP
45-
When using Visual Studio, ensure you have the ["Enable Multi-Project Launch profiles" setting on](https://learn.microsoft.com/en-us/visualstudio/ide/how-to-set-multiple-startup-projects?view=vs-2022#enable-multi-project-launch-profile).
46-
47-
1. To start the required infrastructure for the showcase, run one of the docker command below from the `src` folder in a terminal.
48-
49-
**For RabbitMQ**
50-
51-
Update `rabbit.env` file section named "Only used for the showcase processes" to:
52-
```env
53-
# Only used for the showcase processes
54-
RABBITMQ_HOST="localhost"
55-
RABBITMQ_PORT="33721"
56-
RABBITMQ_VIRTUALHOST="/"
57-
```
58-
59-
Then run:
60-
```cmd
61-
docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-rabbitmq.yml --env-file rabbit.env --profile infrastructure --profile frontend up -d
62-
```
63-
64-
**For Azure Service Bus**
65-
66-
See [ASB setup](#alternative-run-from-azure-service-bus) above for setting the connection string to your Azure Service Bus namespace
67-
68-
```cmd
69-
docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-azure.yml --env-file asb.env --profile infrastructure --profile frontend up -d
70-
```
44+
> **Note:** When using Visual Studio, ensure you have the ["Enable Multi-Project Launch profiles" setting on](https://learn.microsoft.com/en-us/visualstudio/ide/how-to-set-multiple-startup-projects?view=vs-2022#enable-multi-project-launch-profile).
45+
46+
- To start the required infrastructure for the showcase, run one of the docker command below from the `src` folder in a terminal.
47+
48+
### **For RabbitMQ**
49+
50+
Update `rabbit.env` file section named "Only used for the showcase processes" to:
51+
52+
```env
53+
# Only used for the showcase processes
54+
RABBITMQ_HOST="localhost"
55+
RABBITMQ_PORT="33721"
56+
RABBITMQ_VIRTUALHOST="/"
57+
```
58+
59+
Then run:
60+
61+
```cmd
62+
docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-rabbitmq.yml --env-file rabbit.env --profile infrastructure --profile frontend up -d
63+
```
64+
65+
### **For Azure Service Bus**
66+
67+
See [ASB setup](#run-in-docker-against-azure-service-bus) above for setting the connection string to your Azure Service Bus namespace
68+
69+
```cmd
70+
docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-azure.yml --env-file asb.env --profile infrastructure --profile frontend up -d
71+
```
7172

7273
1. After opening the solution (from Visual Studio or Rider), choose one of the run profiles that matches the transport configured previously
7374

74-
- `RabbitMQ`
75-
- `Azure Service Bus`
76-
77-
1. Run the solution to start the demo.
75+
- `RabbitMQ`
76+
- `Azure Service Bus`
77+
78+
2. Run the solution to start the demo.
7879

7980
</details>
8081

@@ -100,7 +101,7 @@ Drill into an existing group to see the list of individual processing failures.
100101

101102
A failed message can be scheduled for reprocessing by clicking the `Retry message` button.
102103

103-
> [!NOTE]
104+
> ℹ️ **Note:**
104105
> It may take several seconds after retrying a message for it to appear again in the consumer's input queue
105106
106107
![Failed Message View](docs/service-pulse-failed-message-view.png "Failed message details view")
@@ -111,11 +112,15 @@ Go to the details page for one of the failed messages and click the `Edit & retr
111112

112113
Navigate to the `Message Body` tab and change some of the contents of the message, ensuring it's still valid JSON matching the message type, and click "Retry" to schedule the message for reprocessing.
113114

114-
> [!WARNING]
115+
> ⚠️**Warning**
115116
> Changing or deleting header values may change or cause issues with the subsequent re-processing. It is recommended that these values are not changed if you are unsure of their purpose.
116117
117118
![Edit Message View](docs/service-pulse-edit-before-retry.png "Edit & Retry view showing the message body")
118119

120+
## View how this works on youtube
121+
122+
[![YouTube Thumbnail](https://github.com/user-attachments/assets/73fbdbdf-39c0-4a1e-a818-8e234c9ba714)](https://www.youtube.com/watch?v=h5gcHWizS7o&t=3s&ab_channel=ChrisPatterson)
123+
119124
### Learn more about ServicePulse
120125

121126
If you want to learn more about ServicePulse head over to https://docs.particular.net/servicepulse/intro-failed-messages.

src/frontend/index.html

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
<!DOCTYPE html>
22
<html lang="">
33
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" href="/favicon.ico" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
4+
<meta charset="UTF-8"/>
5+
<link rel="icon" href="/favicon.ico"/>
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
77
<title>MassTransit recoverability Showcase</title>
88
<!-- Google Tag Manager -->
99
<script>
1010
(function (w, d, s, l, i) {
1111
w[l] = w[l] || [];
12-
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
12+
w[l].push({"gtm.start": new Date().getTime(), event: "gtm.js"});
1313
var f = d.getElementsByTagName(s)[0],
1414
j = d.createElement(s),
15-
dl = l != "dataLayer" ? "&l=" + l : "";
15+
dl = l != "dataLayer"
16+
? "&l=" + l
17+
: "";
1618
j.async = true;
1719
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
18-
f.parentNode.insertBefore(j, f);
19-
})(window, document, "script", "dataLayer", "GTM-N895C5BN ");
20+
f
21+
.parentNode
22+
.insertBefore(j, f);
23+
})(window, document, "script", "dataLayer", "GTM-N895C5BN");
2024
</script>
2125
<!-- End Google Tag Manager -->
2226
</head>
2327
<body>
2428
<!-- Google Tag Manager (noscript) -->
2529
<noscript>
2630
<iframe
27-
src="https://www.googletagmanager.com/ns.html?id=GTM-N895C5BN "
31+
src="https://www.googletagmanager.com/ns.html?id=GTM-N895C5BN"
2832
height="0"
2933
width="0"
3034
style="display: none; visibility: hidden"
@@ -34,4 +38,4 @@
3438
<div id="app"></div>
3539
<script type="module" src="/src/main.ts"></script>
3640
</body>
37-
</html>
41+
</html>

0 commit comments

Comments
 (0)