Configuring persistence plugins at runtime for `EventSourcedBehavior`
One bit of functionality that is present in Classic persistence but missing in Typed is the capability to configure persistence plugins at runtime. Typical case where this is beneficial is for segregation of data between different tenants in multi-tenant environments.
This should be rather straightforward to implement, I could work on it if such feature would be accepted.
There are API methods in EventSourcedBehavior.
Example: https://github.com/apache/pekko/blob/main/persistence-typed/src/main/scala/org/apache/pekko/persistence/typed/scaladsl/EventSourcedBehavior.scala#L163
Providing plugin ID at runtime is not the same as dynamic configuration of the plugin, AFAIK.
I don't have a problem with having a similar RuntimePluginConfig functionality for EventSourcedBehavior. @ptrdom Would you be interested in doing a PR for this?
Yes, will do!