Skip to content

Commit

Permalink
Add space to list
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsSven authored and ozangunalp committed Jan 27, 2025
1 parent bac2016 commit ce6d33e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/src/main/asciidoc/kafka.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3028,8 +3028,9 @@ public class ResourceSendingToKafka {
This makes sure that managed entity is not impacted by the Kafka serialization.

There are however a few reasons why the first approach is preferred for most usecases:
<1> The `MutinyEmitter` is more optimized than the `Emitter`.
<2> When returning an asynchronous operation (`CompletionStage` or `Uni`) with `@Transactional`, the transaction is committed by the asynchronous operation. All asynchronous operations are executed on the same thread, so the throughput of the application may slow down as transaction commits cannot run in parallel anymore.

1. The `MutinyEmitter` is more optimized than the `Emitter`.
2. When returning an asynchronous operation (`CompletionStage` or `Uni`) with `@Transactional`, the transaction is committed by the asynchronous operation. All asynchronous operations are executed on the same thread, so the throughput of the application may slow down as transaction commits cannot run in parallel anymore.

[[writing-entities-managed-by-hibernate-reactive-to-kafka]]
=== Writing entities managed by Hibernate Reactive to Kafka
Expand Down

0 comments on commit ce6d33e

Please sign in to comment.