Aggregates, Entities & Value Objects | Modeling Rules of Thumb + Modeling Steps

  Рет қаралды 60,635

Amichai Mantinband

Amichai Mantinband

Күн бұрын

Пікірлер: 70
@liordagan5098
@liordagan5098 2 жыл бұрын
Thanks!
@amantinband
@amantinband 2 жыл бұрын
OMG thank you so much! I really really appreciate it, I want you to know that your donation means the word to me. I love you, and I'll see you at dinner 😘
@amantinband
@amantinband 2 жыл бұрын
Hey everyone! Just wanted to apologize in advance for the sound quality, had it misconfigured ☹. It should improve significantly next Monday 🤞
@MilanJovanovicTech
@MilanJovanovicTech 2 жыл бұрын
I was about to send you a PM, but you hear it 😁
@PhantomAxxaxxin
@PhantomAxxaxxin 2 жыл бұрын
Was gonna say, lol. For having such a nice mic it sure sounds like a potato.
@ChrisAthanas
@ChrisAthanas Жыл бұрын
Yes this video deserves to be remade with improved audio bc the content is valuable
@adamv5219
@adamv5219 8 күн бұрын
Nice video. The way you listed the modelling steps and “questions to ask” are so helpful. ❤
@silvertek
@silvertek 2 жыл бұрын
I cant wait to get back into the code! The last few videos have been great to step back and look at processes from a higher level. I'm hungry for more BuberDinner.
@amantinband
@amantinband 2 жыл бұрын
Same here. Next week we are coming back to the code in full force 💪🏼
@sushilb7994
@sushilb7994 2 жыл бұрын
Couldn't agree more... Last few videos have set the stage to deep dive into DDD 💪
@MilanJovanovicTech
@MilanJovanovicTech 2 жыл бұрын
Excellent high level explanation of these concepts. When are you going to show us the code? 🔥
@amantinband
@amantinband 2 жыл бұрын
Next week 🤙🏼
@MilanJovanovicTech
@MilanJovanovicTech 2 жыл бұрын
@@amantinband Awesome, can't wait
@amanamudoaka8020
@amanamudoaka8020 2 жыл бұрын
The saviour is here. I completely get it. But we need a video for a full usage of most of the concepts. Well done teacher.
@amantinband
@amantinband 2 жыл бұрын
No worries we’ll cover everything with practical examples
@amantinband
@amantinband 2 жыл бұрын
Curious to hear what you think! Do you have experience with modeling a domain? Do you have a different approach? Do you have different rules of thumb? Are you new to DDD? Do you have any questions regarding any of concepts?
@danil3700
@danil3700 2 жыл бұрын
Just today I was looking for information about aggregates, thanks! Can't wait next video
@amantinband
@amantinband 2 жыл бұрын
Awesome to hear. Are you modeling a domain or onboarding to an existing project?
@danil3700
@danil3700 2 жыл бұрын
@@amantinband I have a project at the university and I want to model it using DDD. I've looked at a lot of information about this, but your videos are awesome. Structured, useful information, and even with project examples
@amantinband
@amantinband 2 жыл бұрын
Oh cool! Next Monday’s video is going to be a practical example I think you’ll find useful as well
@alexkovanev1425
@alexkovanev1425 2 жыл бұрын
Great and simple explanation
@amantinband
@amantinband 2 жыл бұрын
Thanks Alex 🙏🏼
@manuelknorle1457
@manuelknorle1457 2 жыл бұрын
Once again an extremely good video. Didactically on world class level, even with bad sound. 😛
@amantinband
@amantinband 2 жыл бұрын
Haha thanks Manuel 😅
@Manolete919
@Manolete919 19 күн бұрын
Excellent explanation!!
@זוהרפפר
@זוהרפפר 2 жыл бұрын
Awesome stuff! Keep the DDD concepts coming :)
@davidjiang7929
@davidjiang7929 Жыл бұрын
Is there a full walkthrough tutorial on Buber Dinner? Would love to code along to understand the thought process better!
@adrianvdhouten
@adrianvdhouten 9 ай бұрын
I've watched this video about 5 times now :)
@alfonsdeda8912
@alfonsdeda8912 6 ай бұрын
Great video! I have one question: In repository pattern if i have for example an aggregate root Post and one entity Comment that can't exist without a post, the only repository that i should create is PostRepository? Does this repository handle all operations on comments too? Does it make sense to have a method that only retrieve comment informations or have at least the postName or postId without other post's informationt, or should i return always the aggregate? CommentRepository doesn't make sense right? Thanks in advance.
@davemasters
@davemasters 2 жыл бұрын
Great video, curious to see how you combine DDD aggregates/entities/value objects with EF
@amantinband
@amantinband 2 жыл бұрын
I struggled and learned a lot bending EF for DDD. There is a lot to talk about and practically no advanced examples available so you can expect some deep dives 👍🏼
@davemasters
@davemasters 2 жыл бұрын
@@amantinband That is the same as my experience, and yes, there really is not much material out there for it. But EF core has come along way in recent years allowing for constructors, automatic mapping to encapsulated backing fields, 'OwnsOne/OwnsMany' etc. Before these features the only way was to have a separate data model from the domain model which adds massive overhead.
@amantinband
@amantinband 2 жыл бұрын
Yeah exactly. It’s still not perfect IMO but definitely something we can work with!
@pilotboba
@pilotboba 2 жыл бұрын
Vladimir Khorikov has a great course on Pluralsight about this topic.
@davemasters
@davemasters 2 жыл бұрын
@@pilotboba thanks, will check that out!
@lilililliilil
@lilililliilil 2 жыл бұрын
ty for the video man!!! Wish u best of luck ❤
@amantinband
@amantinband 2 жыл бұрын
Glad you liked it 😁
@tiagorodrigues6284
@tiagorodrigues6284 2 жыл бұрын
stupid question, if we only have private setters does that means that mappers and deserializers wont work directly?
@siemen3539
@siemen3539 2 жыл бұрын
Would love to see a video covering DDD with a framework like Spring Boot! I would be curious in particular as to how you would handle the separation of domain logic from persistence/framework code.
@amantinband
@amantinband 2 жыл бұрын
I’m not familiar with spring boot, but the application we’re building out uses ASP.NET, and the principles we’ll use for separating logic between the layers should stay true regardless of the framework. There might be specific Java/persistence framework limitations, of course, but generally speaking, you should be able to apply what we’ll cover regardless of the framework 🙂
@Huholoman
@Huholoman Жыл бұрын
What if i make DinnerAggregateRoot and DinnerReservationsAggregateRoot with same id or with relation by having DinnerReservationsId in DinnerAggregateRoot?
@jodainemoore8300
@jodainemoore8300 8 ай бұрын
Could you do a Video with DDD Domain + Strategy Pattern please?
@picious
@picious 2 жыл бұрын
Thank you for your videos,, I just wanted to share with you that your voice is distorted - also in your previous video was the same. You changed something?
@amantinband
@amantinband 2 жыл бұрын
Yeah sorry about that, had it misconfigured. Next video should be fixed 🤞
@camcommute
@camcommute 11 ай бұрын
can u have a one to many from one aggregates to another? or many to many
@amantinband
@amantinband 11 ай бұрын
Yes, but aggregates only reference other aggregates by ID
@rededu5356
@rededu5356 Жыл бұрын
Good day sir, why is the Price an object? And when to decide if it should be an object or primitive type for properties? more power to you sir. thanks
@PaulSebastianM
@PaulSebastianM 2 жыл бұрын
You can reference other aggregates by a reference to the aggregate root, not just its ID (in the storage model you can store just the other aggregate's ID). I think most examples use IDs but technically, isn't holding a memory reference to the AR safe? Because you're just holding a reference to the transaction boundary of that AR, and you can only modify it through its public interface. Right?
@amantinband
@amantinband 2 жыл бұрын
Can you? Yes. Is it recommended? No. Check out this article by vaughn vernon where he talks about this issue: www.dddcommunity.org/wp-content/uploads/files/pdf_articles/Vernon_2011_2.pdf
@PaulSebastianM
@PaulSebastianM 2 жыл бұрын
The aggregate modeling steps are misleading and/or confusing. Not all entities have to be defined as aggregates. Why merge different aggregates into one aggregate? Aggregates have their own invariants, so do entities, but using these terms interchangeably leads to confusion. What does merging them achieve? Did you mean merge different *entities* to form aggregates in order to enforce a new aggregate's invariants (e.g. move Reservation *entity* inside the Dinner entity to form a Dinner aggregate that enforces invariants that use both these entities)?
@amantinband
@amantinband 2 жыл бұрын
Perhaps I could have been clearer on this topic. The steps I suggest in the video are: 1. Treat each entity as if it is an Aggregate Root 2. Merge Aggregates when there are constraints. Constraints can be: 1. Invariants 2. Eventual consistency cannot be tolerated Does that make sense?
@botyironcastle
@botyironcastle 7 ай бұрын
what if you have huge data like 100000000comments in Post object. I don't think you can init a domain object with that much... looks useless to me when dealing with large chunks of data. Thoughts?
@ibrahimkoz1983
@ibrahimkoz1983 2 жыл бұрын
You're amazing.
@OmprakashYadavIIT
@OmprakashYadavIIT 2 жыл бұрын
Awesome
@amantinband
@amantinband 2 жыл бұрын
Thanks Omprakash 🤙🏼
@kenrazo2533
@kenrazo2533 2 жыл бұрын
learn a lot mate! woohooo
@amantinband
@amantinband 2 жыл бұрын
Thanks, Ken 🫶
@janhendrikschreier
@janhendrikschreier 2 жыл бұрын
hi Amichai, I assume you made a bunch of videos where the clipping of your audio happend and you publish this videos now on a weekly basis. If this is the case, please ignore this comment. If not: you're still clipping :/
@amantinband
@amantinband 2 жыл бұрын
Yeah, too bad I didn’t notice before. Sorry for that 🙏🏼 Next week the audio should improve
@PaulSebastianM
@PaulSebastianM 2 жыл бұрын
When panning, try being less "instant". It's OK when you do it because you anticipate it, but for an audience it's jarring and unexpected and makes you loose your focus for a second while you readjust. It's worse when the image is highly zoomed in and the main content that you should be focused on is basically covering the full screen.
@amantinband
@amantinband 2 жыл бұрын
That’s great feedback. Thanks Paul 🙏🏼
@PaulSebastianM
@PaulSebastianM 2 жыл бұрын
@@amantinband Thanks for listening. Keep improving!
@Petoj87
@Petoj87 2 жыл бұрын
Love the video but the sound is off
@MohamedAbdulRaouf
@MohamedAbdulRaouf Жыл бұрын
I stand with Palstine
@gretavanskeet2974
@gretavanskeet2974 Жыл бұрын
Ive never seen someone with such a nice mic have such horrible audio.
@clashclan4739
@clashclan4739 2 жыл бұрын
The more I learn about DDD, the more it don't make much sense. Only theoretically it is good
@felipemfrudeli
@felipemfrudeli 12 күн бұрын
Make sense only if you have a large system with multiple languages between the contexts. Imagine two types of Costumer, but the meaning is different for each context, if you only put them all together it will become more complex to handle with. For me, the most useful thing it's about the separation of concern and purity in domains, if you want to switch the technology like ORM or API, it's easier to change without modify the domain. The more complex types can also help the validation and discovery hidden business logic.
@clashclan4739
@clashclan4739 11 күн бұрын
@felipemfrudeli how often did u change orm and database in .net?
Clean Architecture vs Domain-Driven Design (DDD) - Understand the Difference
11:26
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Domain-Driven Design: The Last Explanation You'll Ever Need
21:05
Software Developer Diaries
Рет қаралды 14 М.
Stop Calling Your API a "REST API"
17:42
Amichai Mantinband
Рет қаралды 18 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 693 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.