Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Getting Started With Event Sourcing

Getting Started With Event Sourcing

Ngalam Backend Community

August 22, 2019
Tweet

More Decks by Ngalam Backend Community

Other Decks in Research

Transcript

  1. Event Sourcing? In Event sourcing (ES) we can look at

    a system and say that there are actions and every action causes a reaction. The action, in this case, can be implemented as commands and the reactions as events. (Netijen Mesir, 3000SM)
  2. The Problems With CRUD 1. Too straight forward term (Create,

    Read, Update and Delete) 2. Domain experts don't speak in CRUD terms (Need: Ubiquitous Language) 3. CRUD is how we as developers have trained ourselves to think.
  3. Command Query Responsibility Segregation A command tells our application to

    do something. Its name always uses the indicative tense, like TerminateBusiness or SendForgottenPasswordEmail. Query Command Getting some information from the system.
  4. Command Model and Query Model When methods on the ThingCommands

    interface are executed, the Command Model state is mutated. When methods on the ThingQueries interface are executed, the Query Model state is queried. (Kang Tahu Campur Sebelah, 2020)
  5. CQRS and Architecture Ports and Adapters is an architecture that

    has an impact on the way an application or service as a whole works. (Kang Parkir DILO, 1942)