Skip to main content

All 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 ...
Morez's user avatar
  • 2,239
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 ...
Antonio Gamiz Delgado's user avatar
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 ...
Roei's user avatar
  • 27
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, ...
Ramon's user avatar
  • 501
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: ...
Ramon's user avatar
  • 501
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. ...
Alexander Bakhmach's user avatar
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. ...
Mr. B.'s user avatar
  • 8,725
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 ...
Steven's user avatar
  • 879
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 ...
Jasper van den Bosch's user avatar