Readplace

The Power Of Commands And Events 🔊

fagnerbrack.com 6 min read
View original
Summary (TL;DR)
The article explains the concepts of commands and events in software design. A command is a message from a client to a server that changes the server's state, like a method call, HTTP POST/PUT/DELETE, or CLI instruction. An event represents something that has already happened, is immutable, and is named in the past tense. Separating commands and events makes code clearer and better communicates cause and effect between subsystems.