❔ What type of architecture to use in project?

Hello, I'm on my way of learning .NET Before that, I made my own small pet project created for learning foreign languages, but it was done completely in form of monolith and with the help of Razor Pages. Attached the previous code structure. Now I want to remake this project, additionally adding new functionality, but at the same time rewriting it with more competent architecture. Other than that, I would like to do everything apart from the User Interface first, since I want to learn React later and try to implement it in this case. But now I'm in a big dilemma, because I've been trying for days to find the right structure for such a project and couldn't come up with a final solution. A clean architecture looks too complicated at my stage of knowledge and perhaps not very necessary, since the project is small. Beyond that, I see an N-tier architecture. It already looks simpler and pretty laconic, but at the same time, in various examples, people constantly have a different structure of such projects, as well as the number of layers. Would it be ok to have only three layers, UIL, BLL and DAL? Maybe there are some better practices in my case? Also, it is also not entirely clear what type of projects each layer should be and how they should interact with each other? DAL is better to do as a library, and BLL as an API, as I understand for now. A rather chaotic question, but I will be grateful for the advice. Also, maybe I'm missing something more preferable in my case.
4 Replies
Tarcisio
Tarcisio16mo ago
Vertical Slice for sure I don't like layered architecture, there is no reason in segregating your code. It only makes it harder to maintain $vsa
MODiX
MODiX16mo ago
Derek Comartin
CodeOpinion
Restructuring to a Vertical Slice Architecture
What is Vertical Slice Architecture? It's about focusing and organizing code by features and capabilities, not technical concerns!
emerged_entity
emerged_entityOP16mo ago
Thanks for the advice. Would definitely dig deeper into this.
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server