Skip to content

Commit

Permalink
Rough reordering of unfinished sections
Browse files Browse the repository at this point in the history
Remove the Streaming Implementations sections in favor of a dedicated
"Threading Difference" section. The other parts, commenting on the two
implementations, should be included in the starting section. This
removes the dedicated TEP and PSEP chapters, and as such links should be
 adjusted accordingly. Furthermore, finish the Error Mode section by
 explaining the difference between the TEP and PESP. Lastly, juggling
 around the config and token sections to a more reasonable ordering.

AxonIQ#189
  • Loading branch information
smcvb committed Jul 5, 2021
1 parent 63b6055 commit 6dbac1b
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 102 deletions.
6 changes: 3 additions & 3 deletions axon-framework/events/event-processors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ All processors have a name, which identifies a processor instance across JVM ins
Two processors with the same name are considered as two instances of the same processor.

All event handlers are attached to a processor whose name by default is the package name of the event handler's class.
Furthermore, the default processor implementation used by Axon, is the [Tracking Event Processors](streaming.md#tracking-event-processor).
Furthermore, the default processor implementation used by Axon, is the [Tracking Event Processor](streaming.md).
The (default) event processor used can be adjusted, as is shown in the [subscribing](subscribing.md#configuring) and [streaming](streaming.md#configuring) sections.

Event handlers, or Event Handling Components, come in roughly two flavors: "regular" \(singleton, stateless\) event handlers and [sagas](../../sagas/README.md).
Expand Down Expand Up @@ -142,8 +142,8 @@ Depending on where they happen, you may want to respond differently.
By default, exceptions raised by event handlers are caught in the [Processing Group layer](#processing-group---listener-invocation-error-handler), logged and processing continues with the next events.
When an exception is thrown when a processor is trying to commit a transaction, update a [token](streaming.md#token-store), or in any other part of the process, the exception will be propagated.

In case of a [Tracking Event Processor](streaming.md#tracking-event-processor), this means the processor will go into error mode, releasing any tokens and retrying at an incremental interval \(starting at 1 second, up to max 60 seconds\).
A [Subscribing Event Processor](subscribing.md) will report a publication error to the component that provided the event.
In case of a [Streaming Event Processor](streaming.md#error-mode), this means the processor will go into error mode, releasing any tokens and retrying at an incremental interval \(starting at 1 second, up to max 60 seconds\).
A [Subscribing Event Processor](subscribing.md#error-mode) will report a publication error to the component that provided the event.

To change this behavior there are two levels, the Processing Group and Event Processor respectively, at which you can customize how Axon deals with exceptions:

Expand Down
Loading

0 comments on commit 6dbac1b

Please sign in to comment.