Returning From Command Buses ---Php Training trivandrum

Returning From Command Buses



“Command Buses are a part of CQRS and they always go together.”

“You can only use a Command Bus if you’re doing CQRS.”

“I should be using CQRS and Command Buses because that’s good practice”

“I shouldn’t be returning anything because CQRS is CQS which says don’t return anything”

“We don’t return things because commands are asynchronous”

“We don’t return things because it’s our write model.”

“Right, we never return anything ever. EVER.”

“Wait, so I can return events from my command handlers and still be doing CQRS?”

“Cool story bro but I’m using a Command Bus that doesn’t return anything so I know I’m doing CQRS right.”

“So…should I be returning stuff or not?”



Comments

Popular posts from this blog

A Tailwind CSS Preset for Laravel 5.5

Short and safe array iteration

PHPStorm's performance