Skip to content

Commit 1ab99df

Browse files
authored
Merge pull request #1952 from rabbitmq/stream-tutorial-2
Stream Tutorial 2
2 parents decd4ca + 5c401c3 commit 1ab99df

11 files changed

+1115
-4
lines changed

sidebarsTutorials.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,11 @@ const sidebars = {
428428
type: 'doc',
429429
id: 'tutorial-one-java-stream',
430430
label: 'Hello World',
431+
},
432+
{
433+
type: 'doc',
434+
id: 'tutorial-two-java-stream',
435+
label: 'Offset Tracking',
431436
}
432437
]
433438
},
@@ -439,6 +444,11 @@ const sidebars = {
439444
type: 'doc',
440445
id: 'tutorial-one-dotnet-stream',
441446
label: 'Hello World',
447+
},
448+
{
449+
type: 'doc',
450+
id: 'tutorial-two-dotnet-stream',
451+
label: 'Offset Tracking',
442452
}
443453
]
444454
},
@@ -450,7 +460,13 @@ const sidebars = {
450460
type: 'doc',
451461
id: 'tutorial-one-go-stream',
452462
label: 'Hello World',
463+
},
464+
{
465+
type: 'doc',
466+
id: 'tutorial-two-go-stream',
467+
label: 'Offset Tracking',
453468
}
469+
454470
]
455471
},
456472
{
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
```mermaid
2+
flowchart LR
3+
P((P))
4+
Q[[Stream-Queue]]
5+
C((C))
6+
7+
P --> Q <--> C
8+
9+
class P mermaid-producer
10+
class Q mermaid-queue
11+
class C mermaid-consumer
12+
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
RabbitMQ Streams was introduced in RabbitMQ 3.9.
2-
You can find more information [here](/docs/streams).
2+
More information is available [here](/docs/streams).

tutorials/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import T6DiagramToC from '@site/src/components/Tutorials/T6DiagramToC.md';
2727

2828

2929
import T1DiagramStreamToC from '@site/src/components/Tutorials/T1DiagramStreamToC.md';
30+
import T2DiagramStreamToC from '@site/src/components/Tutorials/T2DiagramStreamToC.md';
3031

3132
# RabbitMQ Tutorials
3233

@@ -234,6 +235,18 @@ This section covers [RabbitMQ streams](/docs/streams).
234235
* [Node.js](tutorials/tutorial-one-javascript-stream)
235236
</td>
236237

238+
<td id="tutorial-two" style={{verticalAlign: 'top',}}>
239+
## 2. Offset Tracking
240+
241+
Keep track of message processing
242+
243+
<T2DiagramStreamToC/>
244+
* [Java](tutorials/tutorial-two-java-stream)
245+
* [C#](tutorials/tutorial-two-dotnet-stream)
246+
* [Go](tutorials/tutorial-two-go-stream)
247+
</td>
248+
249+
237250
</tr>
238251

239252
</table>

tutorials/tutorial-one-dotnet-stream.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ cd Send
8888
dotnet add package RabbitMQ.Stream.Client
8989
cd ../Receive
9090
dotnet add package RabbitMQ.Stream.Client
91+
cd ..
9192
```
9293

9394
Now we have the .NET project set up we can write some code.

tutorials/tutorial-one-dotnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ mv Receive/Program.cs Receive/Receive.cs
8888

8989
This will create two new directories named `Send` and `Receive`.
9090

91-
Then we add the client dependency.
91+
Then add the client dependency.
9292

9393
```PowerShell
9494
cd Send

tutorials/tutorial-one-go-stream.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Now let's create the project:
7474
```shell
7575
mkdir go-stream
7676
cd go-stream
77+
go mod init github.com/rabbitmq/rabbitmq-tutorials
7778
go get -u github.com/rabbitmq/rabbitmq-stream-go-client
7879
```
7980

tutorials/tutorial-one-java-stream.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import T1DiagramReceiving from '@site/src/components/Tutorials/T1DiagramReceivin
3838

3939
In this part of the tutorial we'll write two programs in Java; a
4040
producer that sends a single message, and a consumer that receives
41-
messages and prints them out. We'll gloss over some of the detail in
41+
messages and prints them out. We'll gloss over some of the details in
4242
the Java client API, concentrating on this very simple thing just to get
4343
started. It's the "Hello World" of RabbitMQ Streams.
4444

@@ -101,7 +101,7 @@ import com.rabbitmq.stream.*;
101101
import java.io.IOException;
102102
```
103103

104-
With these classes imported, en `Environment` now can be instantiated:
104+
With these classes imported, an `Environment` now can be instantiated:
105105

106106
```java
107107
Environment environment = Environment.builder().build();

0 commit comments

Comments
 (0)