cloudflow
cloudflow copied to clipboard
Add support for Akka persistence
Is your feature request related to a problem? Please describe. While implementing this PR https://github.com/lightbend/cloudflow/pull/910 I realized that adding Akka Persistence to Cloudflow implementation involves a lot of manual steps, including:
- Adding additional libraries
- Adding additional libraries
- Creating and managing database
- Initializing database
- creating Akka configuration
Is your feature request related to a specific runtime of cloudflow or applicable for all runtimes? Akka Streams runtime
Describe the solution you'd like I would like to see the following:
- Add jars, required for persistence implementation
- Similar to Cloudstate add CR describing database used
- Similar to Cloudstate extend Akka config to include support for the database - may be do it dynamically based on the database CR
- Similar to Cloudstate include code for initializing database for Akka persistence
Describe alternatives you've considered Do it manually in every implementation - see this PR https://github.com/lightbend/cloudflow/pull/910
Additional context Making easier to implement Stateful streaming using Akka Streams runtime in Cloudflow will be a huge boost and with Akka Cluster integration it is close to reality. Most of the things proposed here are already implemented in CloudState, so we know that it works and how to do it.