Skip to content

Instantly share code, notes, and snippets.

@gregoryyoung
Created June 24, 2015 13:25
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save gregoryyoung/a3e69ed58ae066b91f1b to your computer and use it in GitHub Desktop.
Save gregoryyoung/a3e69ed58ae066b91f1b to your computer and use it in GitHub Desktop.
Event Sourcing as 3 functions.
f(events) -> state
match f(state, event) -> state
f(state, command) -> events
@gregoryyoung
Copy link
Author

@kijanawoodard yes.

in some systems it may even be more complex than just match by type (see erlang/haskell)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment