{"action":"created","issue":{"url":"https://api.github.com/repos/jaduff/LabLog/issues/16","repository_url":"https://api.github.com/repos/jaduff/LabLog","labels_url":"https://api.github.com/repos/jaduff/LabLog/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/jaduff/LabLog/issues/16/comments","events_url":"https://api.github.com/repos/jaduff/LabLog/issues/16/events","html_url":"https://github.com/jaduff/LabLog/issues/16","id":261614156,"number":16,"title":"ReadModel","user":{"login":"jaduff","id":10690970,"avatar_url":"https://avatars0.githubusercontent.com/u/10690970?v=4","gravatar_id":"","url":"https://api.github.com/users/jaduff","html_url":"https://github.com/jaduff","followers_url":"https://api.github.com/users/jaduff/followers","following_url":"https://api.github.com/users/jaduff/following{/other_user}","gists_url":"https://api.github.com/users/jaduff/gists{/gist_id}","starred_url":"https://api.github.com/users/jaduff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaduff/subscriptions","organizations_url":"https://api.github.com/users/jaduff/orgs","repos_url":"https://api.github.com/users/jaduff/repos","events_url":"https://api.github.com/users/jaduff/events{/privacy}","received_events_url":"https://api.github.com/users/jaduff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"simonjduff","id":11652264,"avatar_url":"https://avatars2.githubusercontent.com/u/11652264?v=4","gravatar_id":"","url":"https://api.github.com/users/simonjduff","html_url":"https://github.com/simonjduff","followers_url":"https://api.github.com/users/simonjduff/followers","following_url":"https://api.github.com/users/simonjduff/following{/other_user}","gists_url":"https://api.github.com/users/simonjduff/gists{/gist_id}","starred_url":"https://api.github.com/users/simonjduff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonjduff/subscriptions","organizations_url":"https://api.github.com/users/simonjduff/orgs","repos_url":"https://api.github.com/users/simonjduff/repos","events_url":"https://api.github.com/users/simonjduff/events{/privacy}","received_events_url":"https://api.github.com/users/simonjduff/received_events","type":"User","site_admin":false},"assignees":[{"login":"simonjduff","id":11652264,"avatar_url":"https://avatars2.githubusercontent.com/u/11652264?v=4","gravatar_id":"","url":"https://api.github.com/users/simonjduff","html_url":"https://github.com/simonjduff","followers_url":"https://api.github.com/users/simonjduff/followers","following_url":"https://api.github.com/users/simonjduff/following{/other_user}","gists_url":"https://api.github.com/users/simonjduff/gists{/gist_id}","starred_url":"https://api.github.com/users/simonjduff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonjduff/subscriptions","organizations_url":"https://api.github.com/users/simonjduff/orgs","repos_url":"https://api.github.com/users/simonjduff/repos","events_url":"https://api.github.com/users/simonjduff/events{/privacy}","received_events_url":"https://api.github.com/users/simonjduff/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-09-29T11:37:13Z","updated_at":"2017-09-29T11:53:57Z","closed_at":null,"author_association":"OWNER","body":"Does the read model have to worry about pending events?\r\nRoomContext.cs has:\r\n`public List<ILabEvent> ReceivedEvents { get; } = new List<ILabEvent>();`\r\n`public List<ILabEvent> PendingEvents { get; } = new List<ILabEvent>();`\r\n\r\nBut the ReadRoomContext.cs (as I'm going to call it) will presumably need only the events as retrieved from the database?\r\nOr is there some idea of saving state outside of the database? Will data persist in memory, using the database only as permanent storage?"},"comment":{"url":"https://api.github.com/repos/jaduff/LabLog/issues/comments/333106597","html_url":"https://github.com/jaduff/LabLog/issues/16#issuecomment-333106597","issue_url":"https://api.github.com/repos/jaduff/LabLog/issues/16","id":333106597,"user":{"login":"simonjduff","id":11652264,"avatar_url":"https://avatars2.githubusercontent.com/u/11652264?v=4","gravatar_id":"","url":"https://api.github.com/users/simonjduff","html_url":"https://github.com/simonjduff","followers_url":"https://api.github.com/users/simonjduff/followers","following_url":"https://api.github.com/users/simonjduff/following{/other_user}","gists_url":"https://api.github.com/users/simonjduff/gists{/gist_id}","starred_url":"https://api.github.com/users/simonjduff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonjduff/subscriptions","organizations_url":"https://api.github.com/users/simonjduff/orgs","repos_url":"https://api.github.com/users/simonjduff/repos","events_url":"https://api.github.com/users/simonjduff/events{/privacy}","received_events_url":"https://api.github.com/users/simonjduff/received_events","type":"User","site_admin":false},"created_at":"2017-09-29T11:53:57Z","updated_at":"2017-09-29T11:53:57Z","author_association":"COLLABORATOR","body":"You'll only need one collection, that is the collection of events to replay into the read model.\r\nThe write model needs two, because it replays to internal state, and then raises new events when actions are performed."}}
{"actor":{"display_login":"simonjduff"}}