Marco "Ocramius" Pivetta on Nostr: Call me crazy, but I firmly believe that Commands (DTOs) in a #CQRS application are ...
Call me crazy, but I firmly believe that Commands (DTOs) in a #CQRS application are part of the domain.
They are the imperative that is given by the stakeholder.
Yes, you will have infrastructure commands like "clean up some tables", but "sudo make me a sandwich" is business domain.
Published at
2025-04-16 14:21:48Event JSON
{
"id": "73af55368acba27fbac20d360297091bcfe58a34aca5e9ac4650862cd65c35be",
"pubkey": "1d95e6a2733677d95b3a86354962b9efbf8fffe7b40aa2933aca00c65d7c7859",
"created_at": 1744813308,
"kind": 1,
"tags": [
[
"t",
"cqrs"
],
[
"proxy",
"https://mastodon.social/users/ocramius/statuses/114348085015621875",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.mostr.pub"
]
],
"content": "Call me crazy, but I firmly believe that Commands (DTOs) in a #CQRS application are part of the domain.\n\nThey are the imperative that is given by the stakeholder.\n\nYes, you will have infrastructure commands like \"clean up some tables\", but \"sudo make me a sandwich\" is business domain.",
"sig": "17bececdda84af06f95663b1b94edc62b4913a200041df8acccb4681526e3657f82205340f2fa14195ac6c996925b1df378a1c6096cf6a42b133b9c77e020fca"
}