just published a new blog post about Rails Event Store and how you can easily integrate it in a new or existing app
from ActiveRecord callbacks to a pub sub system!
https://xamey.xyz/post/?sha=2c00fc79252ddb1fc8c6788ff72752daa8d91127&title=How%20I%20implemented%20Rails%20Event%20Store%20in%20an%20existing%20Rails%20monolith
@lukaszreszke.bsky.social @andrzejkrzywda.bsky.social
from ActiveRecord callbacks to a pub sub system!
https://xamey.xyz/post/?sha=2c00fc79252ddb1fc8c6788ff72752daa8d91127&title=How%20I%20implemented%20Rails%20Event%20Store%20in%20an%20existing%20Rails%20monolith
@lukaszreszke.bsky.social @andrzejkrzywda.bsky.social
Comments
User <-> UserCreated <-> handler <-> created models
Unfortunately, there's no direct link between events: I create an User instance, a handler reacts to UserCreated event, the handler may create an Email instance, and a handler reacts to EmailCreated to send an email
But! I would like to know how that email has been triggered, which in fact is caused by an User creation
Well said!