Please enable JavaScript.
Coggle requires JavaScript to display documents.
Event - Driven (Pros (Small coupling, not many dependencies, Event becomes…
Event - Driven
Pros
Small coupling, not many dependencies
Event becomes an object which about we can talk, we can use it and pass around.
-
-
-
-
Cons
Hard to debug, no direct flow of code, logs need to be analyzed to understand what's going on undercover.
CQS is not always possible - e.g. a method writing a record to the database and returning it, or pop() method of Stack - removing one lement and returning it.