Skip to content

Project shows one of the approaches how to make event sourced aggregates.

License

Notifications You must be signed in to change notification settings

yasiekz/event-sourcing-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Event Sourcing example

Overview

This project has been created to internal presentation at ZEN company. It shows one of the approaches how to make event sourced aggregates.

What problem it resolves?

It resolves the problem with payments in financial institution. Payment can be:

  • created, after creation payment is blocked in internal booking system
  • resolved by some AML service with statuses IN (REJECT, ACCEPT)
  • booked in PSP
  • manually corrected by financial institution employee

How it works

  • Events are created inside aggregate root
  • They are stored by event store (with MongoDB implementation)
  • Current payment state is not stored in event store
  • Payments are retrieved only by reading events
  • To speed up performance, snapshots are created every one 30 seconds

About

Project shows one of the approaches how to make event sourced aggregates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages