can anyone point me to any EventStore sample application with source code?
I'm learning event storing and want to view a reference implementation.
What is Event Sourcing? Event Sourcing is a pattern for storing data as events in an append-only log. This simple definition misses the fact that by storing the events, you also keep the context of the events; you know an invoice was sent and for what reason from the same piece of information.
On the technical level, event sourcing can be implemented using dedicated storage systems, as well as general-purpose "NoSQL" and SQL databases. If you're interested in the origins of event sourcing, the articles by Greg Young on event sourcing and CQRS are a great place to start.
Kafka will work very well as a log for event sourcing. It is fault-tolerant, scales to enormous data sizes, and has a built in partitioning model. We use it for several use cases of this form at LinkedIn. For example our open source stream processing system, Apache Samza, comes with built-in support for event sourcing.
Solution. The Event Sourcing pattern defines an approach to handling operations on data that's driven by a sequence of events, each of which is recorded in an append-only store.
There seems to be a lack of full-featured sample projects for a lot of this stuff. So far the best option for EventStore/CommonDomain that I've found is Haf's Documently project on GitHub. You can find both source code and wiki pages there. It seems to gloss over some of the complications of real-world apps but it was enough to get me started with my own prototyping.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With