0
Follow
0
View

DDD: User defined infrastructure configurations

lanbo_sama 注册会员
2023-01-25 22:58

Of course it's possible to do so (and if you happen to be planning to take advantage of a framework, you'll want to choose a framework which doesn't enforce such a restriction).

DDD generally advised not doing this because in most cases concerns like this are extraneous to the problem you're trying to solve. But in this case it seems that persistence is something that you're modeling in the domain.

It may in fact be most useful to have a persistence bounded context with its own onion and have the other bounded contexts use that (e.g. in their infrastructure layers).

About the Author

Question Info

Publish Time
2023-01-25 22:58
Update Time
2023-01-25 22:58