Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5067cf9

Browse files
committedAug 10, 2022
Add figure for SAC + super stream
References #46
1 parent 7660c38 commit 5067cf9

File tree

2 files changed

+46
-17
lines changed

2 files changed

+46
-17
lines changed
 

‎pom.xml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -425,22 +425,22 @@
425425

426426
</configuration>
427427
<executions>
428-
<execution>
429-
<id>generate-pdf</id>
430-
<phase>pre-site</phase>
431-
<goals>
432-
<goal>process-asciidoc</goal>
433-
</goals>
434-
<configuration>
435-
<backend>pdf</backend>
436-
<attributes>
437-
<title-page />
438-
<toc />
439-
<toclevels>4</toclevels>
440-
<pagenums />
441-
</attributes>
442-
</configuration>
443-
</execution>
428+
<!-- <execution>-->
429+
<!-- <id>generate-pdf</id>-->
430+
<!-- <phase>pre-site</phase>-->
431+
<!-- <goals>-->
432+
<!-- <goal>process-asciidoc</goal>-->
433+
<!-- </goals>-->
434+
<!-- <configuration>-->
435+
<!-- <backend>pdf</backend>-->
436+
<!-- <attributes>-->
437+
<!-- <title-page />-->
438+
<!-- <toc />-->
439+
<!-- <toclevels>4</toclevels>-->
440+
<!-- <pagenums />-->
441+
<!-- </attributes>-->
442+
<!-- </configuration>-->
443+
<!-- </execution>-->
444444
<execution>
445445
<id>generate-html</id>
446446
<phase>pre-site</phase>

‎src/docs/asciidoc/super-streams.adoc

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,36 @@ Such a super stream consumer is a _composite consumer_.
233233
So among these 9 consumer instances, only 3 are actually _active_, the other ones are idle or _inactive_.
234234
* If one of the application instances stops, the broker will _rebalance_ its active consumer to one of the other instances.
235235

236-
The following figure illustrates how the consumer instances spread across the super stream partitions and which ones are active or inactive:
236+
The following figure illustrates how the client library supports the combination of the super stream and single active consumer features.
237+
It uses a composite consumer that creates an individual consumer for each partition of the super stream.
238+
If there is only one single active consumer instance with a given name for a super stream, each individual consumer is active.
239+
240+
.A single active consumer on a super stream is a composite consumer that creates an individual consumer for each partition
241+
[ditaa]
242+
....
243+
+--------------------+
244+
| |
245+
|cGRE invoices–0 |
246+
| | +-------------------+
247+
+--------------------+ |+-----------------+|
248+
|+cGRE consumer ||Active
249+
|+-----------------+|
250+
invoices +--------------------+ | |
251+
| | |+-----------------+|
252+
|cPNK invoices–1 | |+cPNK consumer ||Active
253+
| | |+-----------------+|
254+
super stream +--------------------+ | |
255+
|+-----------------+|
256+
|+cBLU consumer ||Active
257+
+--------------------+ |+-----------------+|
258+
| | +-------------------+
259+
|cBLU invoices–2 | Composite Consumer
260+
| |
261+
+--------------------+
262+
....
263+
264+
Imagine now we start 3 instances of the consuming application to scale out the processing.
265+
The individual consumer instances spread out across the super stream partitions and only one is active for each partition, as illustrated in the following figure:
237266

238267
.Consumer instances spread across the super stream partitions and are activated accordingly
239268
[ditaa]

0 commit comments

Comments
 (0)
Please sign in to comment.