All Questions
9 questions
0
votes
0
answers
34
views
How to architect the external evnets and Django models?
I'm building a django backend app and I have a few different models in my app. One of these models is a Driver and I want to do the following when calling the create-driver endpoint:
create the ...
1
vote
1
answer
262
views
Maintaning isolation between modules in Django monolith
In our company, we have a monolith. Right now is not that big but we are already seeing some problems with the isolation between the modules we have. Our setup is pretty similar to other Django ...
0
votes
1
answer
81
views
Should a Serverless Cloud Function Be Implemented Inside UI Layer (DDD)?
I'm currently implementing a trading bot using Python and I have the following design:
DAL:
StocksRepository
Domain:
RecommendationService
StocksDataCollectionService
UI:
bot.py: a function that ...
1
vote
1
answer
133
views
Decoupling expensive I/O operations from domain model
Let's assume I have User on my business logic that has a username, address, phone, and profile picture:
class User:
def __init__(
self, username: str, address: str, phone: str, ...
19
votes
3
answers
1k
views
Should Domain Model Classes always depend on primitives?
Halfway through Architecture Patterns with Python, I have two questions about how should the Domain Model Classes be structured and instantiated. Assume on my Domain Model I have the class DepthMap:
...
2
votes
1
answer
622
views
Command payload validation in event sourced micro-service architecture
I am confused about how to realize the data validation in event sourced micro-service architecture.
Let sum up some aspects that related to the micro-services.
Micro-services must be low coupled.
...
6
votes
1
answer
10k
views
DDD with Python: did I get it right? [closed]
I'm trying to use Domain Driven Design (DDD) in a Python project, but it looks like a lot of boilerplate code. I think I'm on the wrong path.
I've three files, all defining the item for each purpose. ...
1
vote
2
answers
1k
views
Domain Driven Design (DDD): A Domain or Infrastructure Concern
I'm immersing myself in DDD and have a question regarding what belongs to the domain, and what is an infrastructure concern.
A simplified example to describe the domain:
One of the contexts in the ...
2
votes
1
answer
212
views
directory per domain model or directory per layer, role
A project now has over 200 classes, one class per file, and it seems pertinent to divide those up into directories. Now I am thinking of two different strategies;
a) grouping by role or layer
...