Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder/Discussion: Durable State support #965

Open
leviramsey opened this issue Jun 25, 2022 · 3 comments
Open

Placeholder/Discussion: Durable State support #965

leviramsey opened this issue Jun 25, 2022 · 3 comments

Comments

@leviramsey
Copy link
Contributor

Short description

Akka Persistence has added a Durable State persistence mode; should Cassandra support it?

Details

The JDBC/R2DBC plugins support Durable State, which suggests at least some investigation should be performed around supporting it in this plugin.

One possibility, matching the approximate usage pattern of Durable State with relational stores would be to write with ALL consistency and read with ONE consistency: this somewhat matches up with the general contrast in Durable State from Event Sourcing of optimizing for the read (typically smaller and faster with Durable State) over the write (typically larger and slower with Durable State). Doing it this way would also make it more likely to be "eventually update-in-place" and reduce storage requirements: which also seems to be one of the main selling points for Durable State.

Alternatively, Durable State could be implemented along the lines of a generic StateUpdated event, but this seems to not provide any Durable State benefits beyond the simplicity of the developer API. Alternatively, this could be a generic "turn a generic event sourcing journal into a durable state store" that would also extend crude Durable State support to the other plugins in the community.

@patriknw
Copy link
Member

The difficult part would be to implement the eventsByTag (or eventsBySlices) for Durable State.

@leviramsey
Copy link
Contributor Author

Wouldn't durable state only really be expected to expose the durable state queries? The JDBC plugin doesn't seem to implement eventsBy* for durable state.

@patriknw
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants