Talk about Event Sourcing in Ruby by Anton Paisov, given during 14th #pivorak Lviv Ruby MeetUp, Ukraine.
Details:
"That's an introduction into Event Sourcing with examples written in Ruby + why UD (from CRUD) are often bad for business".
3. Event Sourcing
Thereâs a Person who has an Address
We need to change the address
CRUD: we just remove old one and add a new one
4. Event Sourcing
Thereâs a Person who has an Address
We need to change the address
CRUD: we just remove old one and add a new one
ES: publish event about this change and then apply it
21. Also important
Canât do proper ES without identify relevant domain
state changes. (from the business point of view)
Look for Events that affect domain state and activity.
26. module EventStoreSetup
def event_store
@event_store ||= RailsEventStore::Client.new.tap do |es|
es.subscribe(Denormalizers::ItemRemovedFromBasket.new,
[Events::ItemRemovedFromBasket])
end
end
end
lib/event_store_setup.rb
39. Materials
Great article about ES from business perspective:
http://bit.ly/abstract-es
Greg Youngâs talk recording: http://bit.ly/greg-es
Martin Fowler has a lot of content on the topic
http://docs.geteventstore.com
40. Arkency blogposts on
ES and DDD in Ruby
http://blog.arkency.com/tags/eventstore/
http://blog.arkency.com/tags/ddd/