Why CQRS and event sourcing

typescript dev.to

Part 1 of 5 of CQRS with effect-cqrs. November 2026. Most applications keep the current state of things. A library keeps a table of books, and lending one updates a row: UPDATE books SET lent_to = 'bob' WHERE id = 'book-1'; The row is now right, and everything it said before is gone. Who had the book before Bob? How many times has it been lent this year? Was it brought back late? Nobody asked those questions when the table was designed, so the answers were thrown away one UPDATE at a t

Read Full Tutorial open_in_new
arrow_back Back to Tutorials