Examples and Tutorials of Event Sourcing in JVM languages
CC-BY-SA-4.0 License
Bot releases are hidden (Show)
Published by oskardudycz over 1 year ago
Extended distributed processes examples with Choreography and Process Manager in addition to the already existing Saga example.
See details in PR https://github.com/oskardudycz/EventSourcing.NetCore/pull/40.
Video with explanation:
Published by oskardudycz almost 2 years ago
See more in https://github.com/oskardudycz/EventSourcing.JVM/pull/38.
Published by oskardudycz over 2 years ago
Event Sourcing is perceived as a complex pattern. Some believe that it's like Nessie, everyone's heard about it, but rarely seen it. In fact, Event Sourcing is a pretty practical and straightforward concept. It helps build predictable applications closer to business. Nowadays, storage is cheap, and information is priceless. In Event Sourcing, no data is lost.
The workshop aims to build the knowledge of the general concept and its related patterns for the participants. The acquired knowledge will allow for the conscious design of architectural solutions and the analysis of associated risks.
The emphasis will be on a pragmatic understanding of architectures and applying it in practice using Marten and EventStoreDB.
You can do the workshop as a self-paced kit. That should give you a good foundation for starting your journey with Event Sourcing and learning tools like Marten and EventStoreDB. If you'd like to get full coverage with all nuances of the private workshop, feel free to contact me via email.
Read also more in my article Introduction to Event Sourcing - Self Paced Kit.
See PR: https://github.com/oskardudycz/EventSourcing.JVM/pull/29
Published by oskardudycz over 2 years ago
Shows how to handle distributed processes in Event Sourcing in practice. Explains various use cases, like:
See the code and more detailed description: https://github.com/oskardudycz/EventSourcing.JVM/tree/main/samples/distributed-processes
See the PR: https://github.com/oskardudycz/EventSourcing.JVM/pull/24.
Read more in How to ensure uniqueness in Event Sourcing.
Published by oskardudycz over 2 years ago
Shows how to handle unique constraint checks in an event-sources system. Explains various techniques like:
See more in:
Published by oskardudycz over 2 years ago
Added sample showing how to apply stream transformations for events versioning with ESDB, see: https://github.com/oskardudycz/EventSourcing.JVM/blob/main/samples/events-versioning/src/test/java/io/eventdriven/eventsversioning/transformations/esdb/StreamTransformationsTests.java
Besides that:
Published by oskardudycz over 2 years ago
Shows how to handle basic event schema versioning scenarios using event and stream transformations (e.g. upcasting):
See also PR: https://github.com/oskardudycz/EventSourcing.JVM/pull/18
Published by oskardudycz over 2 years ago
Upgraded:
Besides that moved tests project into a dedicated stream metadata sample.
See more in:
Published by oskardudycz over 2 years ago
Added link to "Practical introduction to Event Sourcing with Spring Boot and EventStoreDB" webinar. Watch it 👇
Besides that:
Published by oskardudycz over 2 years ago
Added link to "Let's build the worst Event Sourcing system!" talk I gave at EventSourcing Live 2021 conference.
Watch it 👇
Published by oskardudycz over 2 years ago
Sample is showing basic Event Sourcing flow. It uses EventStoreDB for event storage and Spring Data JPA backed with PostgreSQL for read models.
The presented use case is Shopping Cart flow:
Technically it's modelled as Web API written in Spring Boot and Java 17.
It uses:
$all
.ShoppingCart
also contains When method method defining how to apply events to get the entity state. It uses the Java 17 switch syntax for pattern matching.docker-compose up
.[email protected]
, Password: admin
postgres
, user: postgres
, password: Password12!
ECommerceApplication
.