Questions tagged [microservices]
An architectural approach to developing a single application as a suite of small individually deployable services.
microservices
9,287 questions
-3
votes
0
answers
32
views
Managing Database Connections in a Microservice Architecture with Django [closed]
I am designing a microservice architecture using Django and I have encountered a major challenge in data management. I would appreciate it if you could share your experience and perspective.
We have ...
-3
votes
0
answers
42
views
How to ensure data persistence/reliability in a Modular Monolith when the service is down? [closed]
I am developing a system using a Microservices architecture. However, specifically for the 'Order' and 'Payment' domains, I have decided to combine them into a single service—a Modular Monolith. This ...
-1
votes
0
answers
26
views
Sale-ended item still in cart — update price on quantity change or on cart fetch? [closed]
I’m building a cart service for an e-commerce system and I’m confused about handling a sale-end edge case.
A user adds an item to the cart during a sale at a discounted price. The sale later ends ...
-1
votes
1
answer
45
views
Implemenatation Of the KONG API Gate way in microservice using HS256 and RS256 [closed]
I have to implement the KONG api Gateway In that i have two types of token which is
1)Internal Token Using Custom JWT
2)I have Implemented the Azure AD SSO directly in frontend from that i am getting ...
Best practices
0
votes
1
replies
28
views
Hexagonal vs. Onion Architecture: Which one fits better for a composite 'Checkout' Microservice?
I am building a single Microservice (let's call it Checkout-Service) using Spring Boot and PostgreSQL.
This specific microservice is responsible for handling the ...
Advice
0
votes
1
replies
30
views
How to handle authorization in a microservices environment using session-based authentication?
I lack experience with system design, and I’m struggling to understand how all the pieces fit together. I’d appreciate some help seeing the “big picture.”
I’m building a web application with a ...
2
votes
1
answer
69
views
k8 cluster ASP.NET Core 8 error exec /usr/bin/dotnet: exec format error
I have notification service that I have in a docker image and am trying to push to a aks cluster.
locally everything works with docker desktop and k8 cluster thru docker desktop. I am running windows ...
Best practices
1
vote
2
replies
119
views
Is it best practice to pass the JWT token from the API Gateway and build the SecurityContext in each microservice?
I started working on a new project based on a microservices architecture. The requirement is to access user details on every request across all microservices in order to validate certain conditions ...
Advice
0
votes
0
replies
51
views
Using Spring Modulith for converting micro services to modular monolith
Context:
We started building the application with multiple micro services at first and now at a point where the application is more mature and changes are not frequent, lots of discussions were done ...
0
votes
2
answers
89
views
What are safe patterns for Service A to consume data from Service B without direct DB access? [closed]
I’m looking for practical ways to let Service A get the data it needs from Service B without querying Service B’s database directly. I’m not very experienced with distributed systems yet, so I want to ...
Advice
0
votes
0
replies
52
views
Aspire build fails with "Metadata file could not be found" when referencing projects from external solutions (Layered Architecture)
I am trying to use .NET Aspire (v9) to orchestrate a microservices environment. The setup involves multiple services (Identity, KYC), but these services reside in different solutions and repositories ...
Advice
0
votes
1
replies
73
views
How should I encrypt my email service so only the allowed clients are able to call it
I have an email microservice that I created.
I have a platform deployed for multiple tenants. Example; clienta.platform.com, clientb.platform.com etc etc.
Now I want to secure the email micro-service ...
Best practices
0
votes
6
replies
75
views
Implementing ACID with Transactions in Modular Monolitic Backend
Edit 03/12/2025
I ended up using the ctx *fiber.Ctx as a solution.
My handlers, usecases, orchestrators and repositories receives my request context. In my ...
Best practices
0
votes
1
replies
49
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 — ...
0
votes
0
answers
26
views
Support Multiple JSON Ocelot API Gateway
I have multiple microservices, and I am trying to merge them using Ocelot API Gateways. I have created different JSON files for each microservice and I'm adding them using the code below. However, it'...
1
vote
1
answer
54
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 ...
Advice
6
votes
7
replies
369
views
What are the kinds of practical difficulties you've run into when implementing Microfrontends?
Our current codebase exists as a monolithic .NET application. The many years of legacy has made it difficult for our engineers to make changes and we're looking to Strangler Fig our way out of a Big ...
0
votes
0
answers
64
views
500 “Internal Server Error” when using TCP communication between NestJS microservices (Turborepo / Monorepo)
I’m building a monorepo using Turborepo and NestJS, following a microservices architecture with TCP communication between services.
Here’s my folder structure:
...
0
votes
1
answer
126
views
Should I store Stripe Subscription details in local DB or query Stripes API to determine if a user is subscribed?
I have the following requirement.
A website (lets call it Website A) where I sell subscription plans for my SaaS
Payments are handled with Stripe
I am using an authentication service (Auth0) so users ...
1
vote
1
answer
88
views
How can I scale Cassandra across multiple regions (continents,countries) so that clients always connect to the nearest node?
I'm building an application using a CQRS design using Spring Boot Microservices.
For the read side, I plan to use Apache Cassandra because of its strong focus on high availability (basically 100% ...
0
votes
0
answers
63
views
Django Testing in microservices with more than 1 db running
I would like to ask about a certain topic that is tough one. Im working in a project that has microservices architecture with more than 1 databases running every time. in django, how can I perform ...
1
vote
1
answer
95
views
Microservices transactions with saga orchestrator
I'm trying to build microservices application. I want to make auth/register/login gateway service checks every request and modify headers to pass through to internal services and user profile service.
...
1
vote
2
answers
142
views
How to separate a pure domain object from its JPA implementation in a microservice architecture?
I’m refactoring a microservice and I need to move one of my domain objects into an external shared dependency (library).
Currently, this domain object is annotated with JPA (@Entity, @Id, etc.).
...
0
votes
0
answers
54
views
UML use case in a microservices system — should internal services appear as actors?
I’m implementing a streaming platform for my capstone project with a microservices architecture (Auth, Registration/Identity, Catalog, Search, Playback/Streaming, Payment, Subscription/Entitlement, ...
0
votes
0
answers
47
views
Redirect issue with Identity Provider hosted in Docker
TLDR:Dockerised app redirects me to docker network URL instead of localhost.
Objective: Redirect user to identity provider (localhost:6067) while communicating with it at (mcro.identity) from Razor ...
-1
votes
1
answer
138
views
BFF to microservice: client credentials or token-forwarding [closed]
I currently have an admin console that is served a BFF layer and 2 REST microservices - product microservice and user microservice. The user microservice stores information on login users as well as ...
0
votes
1
answer
54
views
CQRS EDA Microservices - event consumption from other bounded contexts
In a system consisting of many CQRS (Command API + Query API) microservices (bounded contexts) that communicate via events on an event bus. Which API (Command or Query) should consume the events from ...
0
votes
0
answers
36
views
How does setting the cookies samesite attribute to strict affect a web application with the FE and BE on two different sub domains?
In my web app, I have whitelisted all the domains for CORS. I still need to set the sameSite and secure attributes for cookies. My frontend and backend are in 2 different sub domains. my microservice ...
1
vote
0
answers
77
views
MongoRepository bean not found when repository is in external JAR dependency
My microservice uses an external dependency which is a JAR build by my company.
I can't figure why the bean is not found.
...
1
vote
2
answers
72
views
Django multi-app authentication: sharing custom token validation and permissions across separate codebases
I'm building a multi-platform system where I have one central authentication service (let's call it "Auth") and multiple other Django applications (App1, App2, App3) that need to ...
-3
votes
1
answer
165
views
How to start Quarkus application with maven [closed]
I am trying to run Quarkus application. I have about 20 separate Quarkus applications and each one is built as a JAR file using Maven.
I'm trying to figure out the best way to run all of them locally ...
0
votes
0
answers
62
views
Spring Boot microservice not reading from rabbitMQ
I have a rabbitMQ container running from docker compose:
...
-2
votes
1
answer
187
views
Microservices Architecture Decision: Entity based vs Feature based Services
I'm architecting my first microservices system and need guidance on service boundaries for a multi-feature platform. Building a Spring Boot backend that encompasses three distinct business domains:
...
0
votes
1
answer
125
views
How do I configure ABP identity in my application to connect to a running ABP instance without full integration?
Requirement
I am working on a product which is expected to have user login to be able to offer it online. As a start, the idea is to simply add some wrapper/annotation/integrations enough to only ...
0
votes
1
answer
263
views
How to apply multi-tenant filtering (e.g., hospitalId) using Hibernate filters with Spring Data JPA in the same database and schema?
I’m building a multi-tenant Spring Boot application where all tenants share the same database and schema, but data is separated by a hospital_id column in each table.
Here’s my setup:
Same database
...
0
votes
0
answers
33
views
Jhipster timestamp fails test always
This issue has persistsed for over 5 days. I only want to generate gateaway and microservice using this JDL file
...
0
votes
1
answer
84
views
Dependency org.springframework.cloud:spring-cloud-starter-netflix-eureka-server:${project.version} not found
I'm trying to work with a microservice and within the Eureka pom.xml I get this error: Dependency org.springframework.cloud:spring-cloud-starter-netflix-eureka-server:${project.version} not found
my ...
-2
votes
1
answer
148
views
How to share files between two microservice in both cloud and on-prem setups? [closed]
In my existing monolith application, I generate files that need to be sent as email attachments. I've started moving to a microservices architecture, where an event is raised via RabbitMQ to trigger ...
0
votes
0
answers
44
views
JHipster Microservice Fails to Connect to PostgreSQL Database
I'm trying to set up a JHipster microservice (propertyservice) that connects to a PostgreSQL database. However, I'm encountering the following error during startup:
...
0
votes
0
answers
40
views
Separation of entities when using msa (Unused column value)
I'm working on separating services. But there's something I'm not sure about.
When separating services, it is difficult to separate entity values.
For example)
Here is a part of my item entity.
...
1
vote
0
answers
38
views
Is there a way to reuse a heavy service across tasks in Airflow?
I'm building an Airflow DAG where some of the steps should do ML/NLP processing.
I have a service class that loads NLP model in constructor. E.g.:
...
1
vote
0
answers
372
views
How to configure Keycloak in Docker without issuer mismatch?
I'm building an app that follows a microservice architecture – mainly to learn how to set up microservices the right way.
Right now, I'm running both Keycloak and my auth service in separate Docker ...
0
votes
0
answers
93
views
Using SQL Server Service Broker External Activation with Microservices
I am working on a proof-of-concept for my company using SQL Server and Service Broker External Activation to send messages from a database to a console application (both .NET and .NET Framework). I ...
0
votes
0
answers
227
views
How to configure Keycloak to publish events to Kafka?
I'm developing a backend application divided into microservices and, for performance reasons, I need to duplicate some of the user's data (like his id and username) across every microservice with ...
2
votes
0
answers
73
views
NATS communication issue between NestJS (gateway) and Spring Boot (microservice) using request-reply pattern
I'm implementing a microservices system where a NestJS gateway communicates with a Spring Boot microservice using NATS as the message broker.
The issue is that when I send a message from my NestJS ...
5
votes
1
answer
177
views
Cannot read request body from HttpServletRequest when Content-Type is multipart/mixed
Below code handles the incoming API calls:
...
0
votes
1
answer
51
views
OAuth Token Validation between Microservices and Strategy to create new token if the expired token is legit
Service A sends a request to service B with Oauth Token generated by KeyCloak. Rightnow Service B validates the token expiry time and if expires it will generate a new access token with same client ...
0
votes
2
answers
347
views
CORS strict-origin-when-cross-origin
I seem to be running into some issues with my CORS configurations. I am using Keycloak for my authentication. All of my endpoints are redirected to a login page, with an error 302 (Found). When I ...
0
votes
0
answers
62
views
How to queue and balance synchronous requests between single-threaded Eureka client instances?
I have an Eureka server and multiple clients subscribed to that server.
The load balancer service has to redirect external calls to the other customer service.
I want to redirect the customers calls ...
0
votes
1
answer
204
views
How can I efficiently share schemas and utils between micro services in a monorepo approach
Hi I am trying to build live prediction with the YOLO. The goal is to stream the data with some kind of transformation from the inference to a final frontend.
The flow should be like this:
model ...