Skip to content

Instantly share code, notes, and snippets.

@diegodurs
Last active December 5, 2015 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegodurs/44d95fdd8ffef70b5ac2 to your computer and use it in GitHub Desktop.
Save diegodurs/44d95fdd8ffef70b5ac2 to your computer and use it in GitHub Desktop.
What the heck is EventSourcing & CQRS ? SQL tables
id name
1111 The Beatles
id user_id recording_id performance
7171 2222 3131 ‘singer’
INSERT INTO artists VALUES name=’Beatles’, id=1111;
UPDATE artists SET name=’The Beatles’ WHERE id=1111;
INSERT INTO performance_claims VALUES user_id=2222, performance=’singer’, id=7171, recording_id=3131;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment