I didn't know what event sourcing was, but Martin Fowler's article did a pretty good job explaining it:<p><a href="http://martinfowler.com/eaaDev/EventSourcing.html" rel="nofollow">http://martinfowler.com/eaaDev/EventSourcing.html</a>
Recently I created a small example of a GraphQL server (built with <a href="http://sangria-graphql.org" rel="nofollow">http://sangria-graphql.org</a>) which is based on event-sourcing and CQRS:<p><a href="https://github.com/OlegIlyenko/sangria-subscriptions-example" rel="nofollow">https://github.com/OlegIlyenko/sangria-subscriptions-example</a><p>It does not use any event-sourcing library or anything like this, so it may be more approachable for people who are learning even-sourcing and GraphQL.<p>Interesting aspect of this project is that it uses GraphQL subscriptions to expose and stream the events (with Server-sent Events).
<p><pre><code> <body>
<div id="app"></div>
<script src="/js/bundle.js"></script>
</body>
</code></pre>
Web pages work better when they contain more than an empty <div>.