Open yuqitanyq opened 2 years ago
Hi @yuqitanyq!
I'm not sure but I think the difference is that for Transaction Processing Architectural Style, the transactions that are sent to the dispatcher have not been executed yet so they are dispatched for processing. Whereas for Event-Driven Architectural Style, its the events that are sent to the dispatcher, so they don't have to be processed. Instead, they may act like signals to trigger some other actions.
I'm not sure but I think the difference is that for Transaction Processing Architectural Style, the transactions that are sent to the dispatcher have not been executed yet so they are dispatched for processing. Whereas for Event-Driven Architectural Style, its the events that are sent to the dispatcher, so they don't have to be processed. Instead, they may act like signals to trigger some other actions.
Good answer @ckcherry23 To add, a transaction is typically sent to a single destination (because executing a transaction multiple times can cause problems e.g., paying a merchant multiple times for the same purchase) whereas an event is typically broadcast to multiple interested parties.
Wow thank you @ckcherry23 and prof @damithc for the clarifications and inputs!! Appreciate it a lot!
Hey everyone,
I just wanted to check, what is the difference between Transaction Processing Style and Event-Driven Architectural Style? It looks like both styles are quite similar, hope that someone can clarify!
Source: CS2103T Textbook
Transaction processing style:![image](https://user-images.githubusercontent.com/83687861/165914595-17a5abbd-10b1-44d2-b820-89a52d8004e0.png)
Event-driven architectural style:![image](https://user-images.githubusercontent.com/83687861/165914708-f87d68c4-b1d2-4c9c-846b-86b213320b8b.png)