CQRS & Event Sourcing: Why Software Engineers are Using It!

EDUDREAMS
EDUDREAMS
3.5 هزار بار بازدید - 2 سال پیش - CQRS & Event Sourcing: Why
CQRS & Event Sourcing: Why Software Engineers are Using It!

CQRS and event sourcing are simple concepts that are easy to understand but can be heavy-handed compared to how we do it in the real world. For example, when modeling a classical person, it is possible to instantiate the subject directly, but it is important to track the age at some point. Audits and backtracking are two reasons why people want to track things. Two ideas related to this are command query responsibility segregation and event sourcing. Command query responsibility segregation is the idea that a component does not communicate or give a direct interface for changing something or getting something, but instead, it receives a command or query and responds on the basis of what it actually received. Event sourcing is the idea of encapsulating changes as events, allowing for review and rollback, serialization, and persistence of the entire state of events plus the current object graph and whatever is in it.

Command and event broker are two different types of cqrs that exist. A command is when an object is sent a command to do or change something, while an event broker is a set of all events that happened. Event broker notation is used to organize communication between objects in the system through a centralized component and event broker. For example, when a person lies on their driver's license, the value they set is not the real value, but instead, a private field called age with a small a because it's private and cannot be manipulated directly. All events are useful for backtracking to a particular state in the system and for creating multiple branches of the development of the system. They can be stored in a public eye list of events and can be recorded. The critical idea is to be able to backtrack and reconstruct a command which undoes the event.

THANKS FOR WATCHING AND DON'T FORGET TO LIKE, COMMENT,  SUBSCRIBE, AND HIT THE BELL ICON TO WATCH THE LATEST VIDEO!
#edudreams #csharp #dotnet

~-~~-~~~-~~-~
Please watch: "String manipulation in Python #codingtutorial #python #programminglanguage #coding"
Make Python Work For You! Master Stri...
~-~~-~~~-~~-~
2 سال پیش در تاریخ 1401/04/01 منتشر شده است.
3,585 بـار بازدید شده
... بیشتر