This is BY FAR the best demonstration of event sourcing on the internet. Thank you so much, I've been researching for two weeks trying to understand this better.
@КонстантинС-ж1ы5 жыл бұрын
Very useful hour of my life. Thank you.
@streakifyapp4 жыл бұрын
Great introduction! Very well explained and concise, many thanks.
@ravenbergdev5 жыл бұрын
This replay events command is amazing
@jitendra80304 жыл бұрын
Thanks a lot for this effort. I finally understood event sourcing.
@niided4 жыл бұрын
Great! I have a better understanding now. Thank you.
@tomatomov90612 жыл бұрын
What I didnt understand is how the events are stored in DB ? Didn't see any insert query. Is stored_events some default table that comes with some event package in laravel ?
@kenjohnsiosan97074 жыл бұрын
can I apply this approach to a loan management application with financial reporting? please advise. thank you
@tomatomov90612 жыл бұрын
Another question. Why the Aggregate Loan example on min 30, cant be made with simple if statement instead of 100 classes, interfaces, events and such ? if ( ($currentAmoun + $currentWithdraw) > 5000 ) { if ({some_query_to_retrieve_the_limitHit_event_counts} === 3) { //Insert "LoanProposal" event in the event log table } //Insert "LimitHit" event in the event log table } Of course it's just imply example. It could be made with methods from some class or similar. But what is the benefits from doing this with all the interfaces. events. projectors, reactors and etc. ? I am not trying to make fun or something. Really can't explain it to myself.
@Paltibenlaish2 жыл бұрын
why not create an accounts_history table separately? and save the history in the traditional app
@orbitory79364 жыл бұрын
So what happens in case stored events table has lots of rows for an account, over the years can be hundred of thousands per account so you have to do a lot of data calculation? Maybe more logic can be added so only last N rows are used to recalculate the balance. Isn't it better to use a counter field in the account table to trigger the sending of the loan email for this case specifically?
@mabdullahsari5 жыл бұрын
Would it be fair to say that this is Redux for the backend (kind of)
5 жыл бұрын
I think so. It's also very similar to store your api requests in a list and process it whenever you want.