All Questions
Tagged with python architecture
68 questions
0
votes
1
answer
258
views
Separation of concerns between business layer, data layer and presentation layer without losing information
I'm developing an api in Fast API using sqlalchemy to manage my ORM classes and operations with the database.
I'm dealing with some design decisions to have my classes as little coupled as possible ...
-3
votes
1
answer
164
views
Is it a bad idea to use NodeJS + Python for back end development?
I'm working on a platform that consumes and transforms data to make reports and visualize those reports in a client app.
The team has experience with NodeJS and NestJS, and some of us have experience ...
2
votes
2
answers
562
views
Is this architecture overkill? What is a good way to architect this software?
I have an algorithm I am trying to implement that has steps 1 to 5. There are several different ways I could implement each step. Each calculation step is essentially just an astronomy calculation, ...
3
votes
1
answer
185
views
How to structure repositories for a small number of entities?
I am working on a project implemented in DDD style, and I use Repository architecture pattern to persist domain changes. I have multiple roles in domain layer, and that's what raises my question - how ...
1
vote
0
answers
74
views
Endpoint design for single and bulk requests
I'm working on a project in Python and want to get it hosted for others to use, the internal recommendation has been to host it on AzureML (it is a non-machine learning model, but follows the same ...
1
vote
2
answers
65
views
Hierachy and API design for a CSS-selector-related Python library
I'm writing a Python CSS-selector library that allows one to write these kinds of expressions in Python as a pet project. The goal of the library is to represent selectors in a flat, intuitive and ...
3
votes
2
answers
171
views
Conceptual Software Design: Managing Large Number of LEDs with Raspberry Pi
Question Summary
I am writing a program that will run on a Raspberry Pi 4b+ designed to manage hundreds of LEDs, as well as a few other devices (such as small motors). This is for a project I am a ...
-1
votes
2
answers
129
views
Architecture for EOD (end of day) stock exchange prices
I need to work out the architecture for a NASDAQ frontend charting application (a desktop app in .Net). Note that this is NOT for real-time quotes.
NASDAQ provides an api that gives historical pricing,...
6
votes
3
answers
2k
views
Best design practice when one python method passes most of its arguments to another method
My code has 2 python methods defined, m1 and m2. m1 receives 6 arguments - p1,p2,p3...p6. It uses p1 in its own code, but passes p2-p6 to m2. Is there a recommended programming style here to prevent ...
1
vote
3
answers
2k
views
How to handle dependencies between microservices all called within one large service
We are working on a suite of Python 'services' each of which is basically an application that does some calculations based on a domain (data) model and returns the results. These services are designed ...
3
votes
2
answers
354
views
Design pattern for constructing and linking up objects that form a graph
I am working on a simple library that will help me work with prescription drugs. For instance, DrugBank contains a list of FDA approved drugs, and, importantly, how these drugs interact with one ...
0
votes
1
answer
547
views
How to integrate a Python server with Kafka?
I have the request to integrate my Python server application (Flask/waitress) with Kafka.
That means that it should frequently poll a certain Kafka topic (on the order of minutes) and process all new ...
1
vote
1
answer
314
views
Where to create repository instances?
I've several repositories. To make them testable, I add the ORM session in the constructor.
class Repository:
def __init__(session):
self.session = session
def save(object):
self.session()...
-3
votes
1
answer
66
views
Is it possible to add a unique identifier to the shared Data via bittorrent (P2P)?
I know that P2P sharing is copying the exact content between the peers. Everyone has the same data.
Let's assume the content is very important and I don't want anyone to distribute outside the group. ...
3
votes
5
answers
241
views
How to refactor a lot of Functions that can be run in two different modes
I have some code and in it there are functions which can be run in one of two modes (in my case server mode and local mode). For example, most functions look something like this:
def path_join(...