Snippets tagged cqrs

  • Event stream projection with actors

    An example of using an actor (MailboxProcessor) to coordinate the projection of events from an event stream into a persisted projection. This example covers handling simple concurrency conflicts via also persisting and checking the latest event ID with with projection. The update command will take the current projection and apply all new events before persisting it back. The rebuild command will ignore an existing projection and replay all events in the stream.

    5 people like this

    Posted: 10 years ago by Daniel Bradley