pekko icon indicating copy to clipboard operation
pekko copied to clipboard

Runtime plugin configuration for `DurableState`

Open ptrdom opened this issue 11 months ago • 4 comments

Just like with EventSourcedBehavior, it would be useful if runtime plugin configuration was possible for DurableState.

https://github.com/apache/pekko-persistence-r2dbc/pull/194 adds the implementation for R2DBC plugin.

ptrdom avatar Mar 15 '25 10:03 ptrdom

@ptrdom Would you be able to provide a little more detail on which parts of the 194 PR that you think should be copied into this repo?

pjfanning avatar Mar 18 '25 20:03 pjfanning

I think nothing will need to be copied into this repo from 194 PR, just that once this repo implements necessary changes for plugin interface then users will be able to use the plugin implementation from 194 PR.

Necessary changes will likely be, at the very least, to the DurableStateBehavior interface to allow setting the runtime config, then DurableStateStoreRegistry will need a new method to allow passing that config further to the plugin implementations.

ptrdom avatar Mar 18 '25 20:03 ptrdom

presumably something a bit like #1518

pjfanning avatar Mar 19 '25 22:03 pjfanning

Yes, very similar indeed.

ptrdom avatar Mar 21 '25 20:03 ptrdom