17,182 questions
Best practices
0 votes
1 replies
37 views
Should I use the BFF pattern or store access token in memory and a refresh token as an http only cookie? Or scrap jwts and just use sessions
System Overview and Token Handling Question I work for a company with 2 developers. We are building new systems and currently have the following resources: An accounting database A user database An ...
Best practices
0 votes
0 replies
32 views
How to integrate a new authentication microservice (v2) with a legacy monolithic system (v1)?
We currently have a new microservice that handles authentication, authorization (RBAC), and KYC as part of our v2 architecture. We also have an older legacy system (v1) which is fully monolithic — ...
Best practices
0 votes
2 replies
46 views
Best method to manage metrics of prompts that are stored in a git repository
We are building an LLM-based application which takes a lot of user data from various internal sources. It then sends the data to various prompts which provide the answers needed to fill out forms ...
Best practices
0 votes
0 replies
40 views
Prompt managing storing in git v.s. db
We are building an LLM-based application that takes a lot of user data from various internal sources and sends the data to various prompts which provide the answers needed to fill out forms correctly. ...
Best practices
0 votes
1 replies
60 views
What is the best implementation for probably a simple idea I have?
Here's what I want to do: I want to store files onto my office's computer. I lack experience in terms of completed solutions. I’ve only built a prototype once via ChatGPT, and I want to ask if this is ...
-3 votes
1 answer
86 views
Should one service call another service or use the repository directly? [closed]
I'm learning Clean Architecture and I can't figure this out. Imagine this scenario: I have a ServiceA that calls its repository: public class ServiceA : IServiceA { private readonly IRepositoryA ...
Advice
0 votes
0 replies
16 views
Document generation EA Sparx
I made a report package for document generation. At each model document (in the report package) I attached a template. The template contains a fragment. For the fragment we use a SQL query. In the ...
Best practices
0 votes
3 replies
52 views
How should I structure NestJS services when one endpoint needs to update multiple entities (e.g., InvestorProfile and TaxProfile)?
I’m working on a NestJS + TypeORM backend and ran into an architectural question as my codebase evolved. Initially, I had a simple setup: InvestorProfileController handles PATCH /investor-profile ...
0 votes
1 answer
90 views
How does the LDA instruction interact with RAM and IR on MU1 architecture? [closed]
I am trying to understand this LDA instruction. After the fetch instruction, IR holds LDA S. 1 - In the first step, DIN = [IR], IR is supposed to be interpreted as an address (because of the brackets),...
Tooling
0 votes
1 replies
55 views
Dealing with third party rate limits
I have been working on AWS Serverless Lambdas and now having issues with third party rate limits. Context A Lambda invocation triggered by an event: calls a third-party API 4 times, runs some logic,...
Best practices
0 votes
1 replies
45 views
How do you handle CI/CD for APIs? I’m stuck on how setups with multiple local/staging/prod fit together
We built a CI/CD monorepo -- it makes intuitive sense with local/staging/prod. You push small commits and it auto-deploys. That makes sense when you just have that one pipeline for one app. But now as ...
Best practices
0 votes
2 replies
121 views
How to model and persist entities whose state changes over time
I’m designing a domain model where some entities evolve over time, and I need to keep a historical record of their state that can be retrieved later. A simplified example: A Credit Line represents a ...
1 vote
1 answer
49 views
How do I redesign a broken multi-service system where the entry point and child services are out of sync?
I recently joined a startup that has a pretty messy backend setup, and I’ve been assigned to sort it out. Here’s the situation: There’s one main entry point (a federation/onboarding service) that’s ...
Best practices
0 votes
2 replies
84 views
What is the best practices to delete outdated data from the SQLite database on the server?
I have a Golang server (pet project) and each second I add 2879 bytes of data in database. At the moment I'm about a 1GB of data. I want to cleanup the database to avoid a moment when I'm run out of ...
Best practices
0 votes
2 replies
58 views
Hexagonal Architecture: How to orchestrate complex business workflows?
Problem Statement I'm implementing a complex business workflow using Hexagonal Architecture (Ports and Adapters), but I'm struggling with how to properly orchestrate. Business Workflow Requirements ...