Skip to main content

Questions tagged [onion-architecture]

The *Onion Architecture* is a software architecture proposed by Jeffrey Palermo. It is similar to the *Hexagonal Architecture* (Ports and Adapters) proposed by Alistair Cockburn.

Filter by
Sorted by
Tagged with
6 votes
2 answers
2k views

Application service - part of Bounded Context?

I am having a hard time understanding where the Application Services fit in with DDD and Onion architecture. Up until a few days ago I thought of them as part of domain model, but I began to question ...
robotron's user avatar
  • 767
6 votes
3 answers
6k views

Onion architecture: layer placement of business logic

Where should the business logic for a project that utilizes Onion Architecture be placed? In my case, it's a C#-based project, utilizing Web API and possibly a MVC UI for the presentation. But ...
Adam Plocher's user avatar
2 votes
1 answer
921 views

Can one app have several "subdomains" in DDD?

General Context I started reading about layer based architectures like DDD, Onion, Clean Architecture etc. I am considering switching, but am currently unclear about how strict the "first level ...
R. Schmitz's user avatar
  • 2,608
4 votes
0 answers
289 views

Should I pass presenter to use case when implement clean archeiture using scala

This question came to me when I was trying implement Clean Architecture using Scala, and come across this post. In the accepted answer, @candiedorange emphasis on the separation of responsibility, and ...
Brian Hsu's user avatar
  • 201
6 votes
1 answer
2k views

Is there really such a thing as the onion architecture?

Note: BLL = Business Logic Layer (can also mean your domain) I'm trying to understand the onion architecture. It seems to me that it's actually the same thing as the layered architecture, only with ...
Bob Horn's user avatar
  • 2,337
2 votes
2 answers
377 views

Does a framework like the Spring Framework fall under the Data Centric Architecture?

With all the talk of Microservices with Domain Driven Design, I have been looking at two architectures, the Database-Centric Architecture and the Domain-Centric Architecture (Not to be confused with ...
Arty's user avatar
  • 131
2 votes
1 answer
268 views

How to realize "Tell, don't ask" in an Onion-Architecture for data analysis

I am currently thinking about how I would implement a software I did write some years ago with a Clean-/Hexagonal-/Onion-Architecture. This shall not be a "Grand Redesign from Heaven", since I'm not ...
Paul Kertscher's user avatar
1 vote
0 answers
777 views

Putting UnitofWork handler in the Request Model for DDD with Clean architecture?

I'm rearchitecting a system in Python, using SQLAlchemy for the data mapping layer, and the Zope Component Architecture for dependency injection and interface declaration. I am in the process of ...
Iain Duncan's user avatar
10 votes
1 answer
5k views

Where should I place configuration classes in Onion Architecture

We are redesigning one of our API projects from an n-layered architecture into onion architecture. In the previous design, we had configuration classes in a common library project being referenced ...
InstilledBee's user avatar
8 votes
2 answers
15k views

How to structure an Onion project

Here is an example implementation using Onion architecture: https://www.codeproject.com/Articles/1028481/Understanding-Onion-Architecture The webpage suggests a solution structure of: Domain - ...
w0051977's user avatar
  • 7,101
1 vote
2 answers
461 views

Domain Interface references NHibernate?

Please see the question here, which I asked yesterday: Domain Driven Design in an Onion Architecture As stated I understand that DDD is an approach that targets the domain layer only and Onion is an ...
w0051977's user avatar
  • 7,101
1 vote
3 answers
3k views

Domain Driven Design in an Onion Architecture

I recently asked this question: Should the domain layer be dependent on NHibernate? I have read a lot of questions today, where answerers state that the Domain Layer should only contain Business ...
w0051977's user avatar
  • 7,101
0 votes
1 answer
144 views

Should Active Directory access respect my software architecture?

I have a solution with an onion architecture using an asp.net MVC project. I also access Active Directory, and was wondering if one needs to loosely couple Active Directory access? Say I have : ...
Flexabust Bergson's user avatar
132 votes
7 answers
73k views

Clean Architecture: Use case containing the presenter or returning data?

The Clean Architecture suggests to let a use case interactor call the actual implementation of the presenter (which is injected, following the DIP) to handle the response/display. However, I see ...
swahnee's user avatar
  • 1,455
5 votes
2 answers
12k views

How to structure a Domain Driven Design in an Onion Architecture?

I am studying Domain Driven Design and was introduced to the concept of Onion Architecture, which uses the terms of Core, Domain, API, and Infrastructure. I am from Java background and am familiar ...
Arko's user avatar
  • 191
0 votes
1 answer
413 views

What should I consider when moving a project using Entity Framework 6 from SQL Server to MySQL or PostgreSQL? [closed]

First, I need to confess this question come mostly from the still expensive licensing model used by Microsoft for SQL Server Standard. Also because Web edition is now only available through Web ...
Guillaume Raymond's user avatar
3 votes
3 answers
3k views

Architecture: How to pass models between controllers, services and repositories

I'm trying to build an architecture where I have a Domain project with all my domain models, an Infrastructure project with my Services and Infrastructure.Entity with my Repositories and entities. ...
Trolley's user avatar
  • 131
14 votes
2 answers
13k views

Onion architecture vs 3 layered architecture

I see only benefits to the onion architecture over the 3 layered architecture where the BL had responsibility to call methods on DAL (or an interface of DAL) to do CRUD. The onion has better ...
BornToCode's user avatar
  • 1,273
3 votes
2 answers
1k views

Onion architecture design question

I recently started working on a new project where the team was considering use onion architecture, which I was not very familiar with, so I started reading about it. The application is a simple 3D ...
rbasniak's user avatar
  • 142
12 votes
2 answers
3k views

Where should you validate the state of "other" aggregates?

Scenario: A customer places an order, then, after receiving the product, provides feedback on the order process. Assume the following aggregate roots: Customer Order Feedback Here are the business ...
magnus's user avatar
  • 674
4 votes
2 answers
3k views

why exposing service instead of repository in onion architecture

I'm digging on how to structure projects and so I stumble into Onion Architecture. As to how I understand it, its more on a domain-centered-focus architecture instead of a database-driven type. I'm ...
Boy Pasmo's user avatar
  • 141
1 vote
1 answer
781 views

Onion architecture and independence

Trying to understand onion architecture. As I understand it, there is different opinions about the names of the layers. In this post I refer to the layers as: infrastructure -> api -> domain -&...
superhero's user avatar
  • 337
3 votes
3 answers
930 views

How to best encapsulate features in software design?

I like domain driven design, and onion design. However I would really like my features to be encapsulated. If i check out some legacy code and I need to investigate some specific feature the best ...
Jas's user avatar
  • 507
10 votes
4 answers
3k views

Lookup Tables: Are they a leak in the domain model?

You are building a system that keeps track of Companies. Those companies have Contacts. Those contacts are often specialists that only answer certain types of questions, such as Billing/Payment, Sales,...
Drew's user avatar
  • 221

1
2