Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
patriknw committed Jun 18, 2024
1 parent 63d6890 commit 2994503
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/src/main/paradox/grpc-replicated-event-sourcing-transport.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,14 @@ The consumer can pass metadata, such as auth headers, in each request to the pro
Authentication and authorization for the producer can be done by implementing an @apidoc[EventProducerInterceptor] and passing
it to the `grpcServiceHandler` method during producer bootstrap. The interceptor is invoked with the stream id and
gRPC request metadata for each incoming request and can return a suitable error through @apidoc[GrpcServiceException]

## Migrating from non-replicated

It is possible to migrate from an ordinary single-writer `EventSourcedBehavior` to a `ReplicatedEventSourcedBehavior`.
The events are stored in the same way, aside from some metadata that is filled in automatically if it's missing.

The `ReplicaId` for the where the original entity was located should be empty. This makes sure that the
same `PersistenceId` and same events are used for the original replica.

The aspects of @extref[Resolving conflicting updates](akka:typed/replicated-eventsourcing.html#resolving-conflicting-updates) must be considered in the
logic of the event handler when migrating to Replicated Event Sourcing.

0 comments on commit 2994503

Please sign in to comment.