Value Objects are a great way to explicitly capture concepts within your domain. Value Objects are immutable, always in a valid state, provide behavior, and are defined by their value. This sounds a lot like Messages (Commands, Events) that are also immutable and should be in a valid state. However, exposing your Value Objects by using them within Commands or Events can have a negative impact on your ability to evolve your domain model.
🔗 EventStoreDB
[ Ссылка ]
🔔 Subscribe: [ Ссылка ]
💥 Join this channel to get access to source code & demos!
[ Ссылка ]
🔥 Don't have the JOIN button? Support me on Patreon!
[ Ссылка ]
📝 Blog: [ Ссылка ]
👋 Twitter: [ Ссылка ]
✨ LinkedIn: [ Ссылка ]
0:00 Intro
0:47 Value Objects
2:11 Examples
4:07 Leaking Value Objects in Messages
#softwarearchitecture #softwaredesign #ddd
Leaking Value Objects from your Domain
Теги
value objects domainsoftware architecturesoftware designcqrsevent sourcingdesign patternssoftware architectmicroservicesmessage queueskafkaevent busevent driven architectureazure service busrabbitmqdistributed transactionsservice busmessage queuemessage queuingmessaging patternsservice oriented architecturemicroservice architecturedomain-driven designenterprise service busdomain driven designdddvalue objectsValue object