How To Move From Clean Architecture to Vertical Slice Architecture

How To Move From Clean Architecture to Vertical Slice Architecture

Milan Jovanović

4 месяца назад

13,718 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@houdaifabouamine
@houdaifabouamine - 12.03.2024 15:27

Thanks for the video !
I hope to see also the opposite, from vertical slices to clean ?

Ответить
@JustCode512
@JustCode512 - 12.03.2024 16:02

Thank milan

Ответить
@HeyWhoTheFuckAreYou
@HeyWhoTheFuckAreYou - 12.03.2024 16:56

What is this "Maybe" class you have in your controllers? I'm interested in how these methods look like.

Ответить
@DaminGamerMC
@DaminGamerMC - 12.03.2024 18:19

How do you implement reusability in VSA? I mean lets say I call the dbcontext to get some object "SampleObject" in many of the Handlers, i realise i am using the same logic to retrive the object many times so decide to make it a method. Normally i would use Repository pattern for this, what do you think?
Also, what if is is not a database operation but instead some business logic that i see myself rewriting in many Handlers. Where would i put this reusable method?

Ответить
@JANDRESCR
@JANDRESCR - 12.03.2024 18:53

what happen with application project in this case?

Ответить
@joehernandez3231
@joehernandez3231 - 12.03.2024 20:38

Great explanation, thanks!
Do you find that your testing becomes more challenging when you remove the abstractions (needed in Clean Architecture) and use the concrete types directly? Does this require the use of integration tests more than unit tests?

Ответить
@lettuceturnipthebeets790
@lettuceturnipthebeets790 - 12.03.2024 20:45

Milan, a bit off topic, but what do you think of the increased fee on Upwork that took place this year? 5% towards the 10% for $10k+?

Ответить
@marcinb7578
@marcinb7578 - 12.03.2024 22:53

The Clean Architecture structure you start with is a bad one. The clean arch directory structure should not be applied at the top level but on a module/context/feature (you name it) level. You violate the cohesion rule. Why do you force me to move around other features' directories when I'm only interested in one? I should enter a feature directory once, focus only on this context and forget about others.

Ответить
@BlazorPlate
@BlazorPlate - 12.03.2024 23:32

Does Vertical Slicing refer to the same concept as Modular Monolith?

Ответить
@fernandohcortez
@fernandohcortez - 13.03.2024 13:49

Hey Milan, great video. Best c# content on internet. Just a question, in your opinion, what are the points one should consider when choosing vertical slices over clean arch? Do you still use both, or do you have a preference nowadays. Thank you. Keep it up.

Ответить
@gakshay9537
@gakshay9537 - 13.03.2024 17:37

Nice explanation Milan. So, are we going to end up with a single project in VSA?

Ответить
@Piyush-mg4zq
@Piyush-mg4zq - 13.03.2024 21:16

Thanks Milan. This really clears a lot of doubt clouds.

Ответить
@KsiProgramming
@KsiProgramming - 14.03.2024 01:55

this is so wrong, this is not VSA ... and what about your namespaces ?!!!!

Ответить
@sotsch9280
@sotsch9280 - 15.03.2024 01:38

Partial classes to the rescue!

Ответить
@Fikusiklol
@Fikusiklol - 23.03.2024 09:45

Nice example, Milan.
But Im personally leaning towards a mix of Clean / Vertical, where you still have slices, just across projects.
To separate concerns and make it testable.
Like if you had Orders folder with its features in Domain / Application / Infrastructure projects.

Ответить
@ayanesuarezromero4222
@ayanesuarezromero4222 - 08.04.2024 12:48

I really love this approach. Moving through different layers sometimes it's a bit painful. Quick question. I moved my features to my API project but the validators used to live in the Application project. Is it allowed to move the mapper definitions to one slice, the entity feature?

Ответить