SlideShow

Onion Architecture - What is it and what value does it provide?

Onion Architecture is a way of structuring code to help manage business rules. It is not neccessarly the archtiecture to use for a simple CRUD or reporting application.

Back in 2008, Onion Architecture defined four key tenets:

Who invented Onion Architecture?

How do you implement it?

https://miro.medium.com/max/4980/1*YD1UlRMg0Rbp8kUKDy1KZw.png

What NOT to do - follow the more common pattern you see

https://miro.medium.com/max/5490/1*qcA9QI41c1-202rOaym8GA.png

What NOT to do - details

Wrong!

https://miro.medium.com/max/4230/1*eSS5PEGJ6BCWjKOLo6oPvw.png

Wrong - even with RCM DIP applied!

https://miro.medium.com/max/5055/1*tmx3ULMnFSyUtoNWWsD_JQ.png

What TODO - details

https://miro.medium.com/max/5738/1*vAKOPgFeEmlMlW_Q6hygZA.png

Other References

OnionArchitecture (last edited 2019-11-04 12:59:28 by cmedcoff)