{"action":"created","issue":{"url":"https://api.github.com/repos/akkadotnet/akka.net/issues/1956","repository_url":"https://api.github.com/repos/akkadotnet/akka.net","labels_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/1956/labels{/name}","comments_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/1956/comments","events_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/1956/events","html_url":"https://github.com/akkadotnet/akka.net/issues/1956","id":154839779,"number":1956,"title":"Akka.Persistence enhancements ","user":{"login":"Horusiath","id":679705,"avatar_url":"https://avatars.githubusercontent.com/u/679705?v=3","gravatar_id":"","url":"https://api.github.com/users/Horusiath","html_url":"https://github.com/Horusiath","followers_url":"https://api.github.com/users/Horusiath/followers","following_url":"https://api.github.com/users/Horusiath/following{/other_user}","gists_url":"https://api.github.com/users/Horusiath/gists{/gist_id}","starred_url":"https://api.github.com/users/Horusiath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Horusiath/subscriptions","organizations_url":"https://api.github.com/users/Horusiath/orgs","repos_url":"https://api.github.com/users/Horusiath/repos","events_url":"https://api.github.com/users/Horusiath/events{/privacy}","received_events_url":"https://api.github.com/users/Horusiath/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akkadotnet/akka.net/labels/akka-persistence","name":"akka-persistence","color":"c7def8"},{"url":"https://api.github.com/repos/akkadotnet/akka.net/labels/enhancement","name":"enhancement","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-14T07:36:17Z","updated_at":"2016-05-14T12:04:21Z","closed_at":null,"body":"This is proposal of few possible changes that we could/should introduce in Akka.Persistence plugin to make it work in more reliable, user-friendly way.\r\n\r\n##### Allow to use the same journal/snapshot store under different settings\r\n\r\nThis was mentioned many times already. It should be possible for one i.e. to use SqlServerJournal in two different scenarios (like custom domain events and cluster sharding), each of those working under different settings, writing events to different databases/tables.\r\n\r\n##### Give ability to set persistence plugins programatically\r\n\r\nSince we have no real support for HOCON, and it's whole schema is dynamic and not validated, there is a lot of config-related issues when working with persistence. To solve them, we could introduce gradual movement towards some more code-as-configuration way of working with settings. \r\n\r\nExample:\r\n\r\n```csharp\r\nusing(var system = ActorSystem.Create(\"sys\") {\r\n    // set default journal, using default configuration path: akka.persistence.journal.sql-server\r\n    system.UseJournal<SqlServer>(isDefault: true);\r\n    // refer to some custom path  \r\n    system.UseJournal<SqlServer>(\"akka.persistence.journal.cluster-sharding\");\r\n}\r\n```\r\n\r\nAny other ideas?"},"comment":{"url":"https://api.github.com/repos/akkadotnet/akka.net/issues/comments/219216715","html_url":"https://github.com/akkadotnet/akka.net/issues/1956#issuecomment-219216715","issue_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/1956","id":219216715,"user":{"login":"Horusiath","id":679705,"avatar_url":"https://avatars.githubusercontent.com/u/679705?v=3","gravatar_id":"","url":"https://api.github.com/users/Horusiath","html_url":"https://github.com/Horusiath","followers_url":"https://api.github.com/users/Horusiath/followers","following_url":"https://api.github.com/users/Horusiath/following{/other_user}","gists_url":"https://api.github.com/users/Horusiath/gists{/gist_id}","starred_url":"https://api.github.com/users/Horusiath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Horusiath/subscriptions","organizations_url":"https://api.github.com/users/Horusiath/orgs","repos_url":"https://api.github.com/users/Horusiath/repos","events_url":"https://api.github.com/users/Horusiath/events{/privacy}","received_events_url":"https://api.github.com/users/Horusiath/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T12:04:21Z","updated_at":"2016-05-14T12:04:21Z","body":"@kantora what would you need it for?\r\n"}}