Skip to content

Commit

Permalink
Add small warning ahead of KafkaSourceProvider (#1141)
Browse files Browse the repository at this point in the history
* doc: +small warning ahead of KafkaSourceProvider

* revert format change
  • Loading branch information
GreyPlane authored Mar 21, 2024
1 parent f75e645 commit 140ffce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/src/main/paradox/kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ The table below shows `akka-projection-kafka`'s direct dependencies and the seco

## KafkaSourceProvider

@@@ warning { title=Important }
Due to the mutable state inside @apidoc[KafkaSourceProvider$], DO NOT share the instance of provider across projections.

For example, if you distribute projection via @apidoc[ShardedDaemonProcess], instantiate each provider inside the behavior
factory.
@@@

A @apidoc[SourceProvider] defines the source of the envelopes that the `Projection` will process. A `SourceProvider`
for messages from Kafka can be defined with the @apidoc[KafkaSourceProvider$] like this:

Expand Down

0 comments on commit 140ffce

Please sign in to comment.