9,309 questions
0
votes
0
answers
16
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'...
-6
votes
0
answers
33
views
Urls for SwaggerUIBundle FastAPI [closed]
I've problem i SwaggerUIBundle raise - don't No API definition provided. My app has 3 microservices and i want test how to create unification swagger for 3 services and i find practise when you create ...
1
vote
1
answer
42
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
344
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
59
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:
apps/
├── api-gateway/
│ ├── src/
...
-1
votes
0
answers
36
views
Right redis cluster caching mechanism with spring boot microservices
I'm working with Spring Boot Microservice project.
For now i have used redis per microservice. I want to use redis cluster and have one microservice for caching data throw messaging system. I want to ...
0
votes
1
answer
49
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 ...
0
votes
0
answers
38
views
FiegnClient vs RestTemplate [duplicate]
How I will get to know when to use OpenFeign client & When to use RestTemplate for microservice synchronous communication? When I have both options available then based on what aspect I need to ...
1
vote
1
answer
58
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
57
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
77
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
95
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
50
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
44
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
89
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
40
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
30
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
74
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.
***************************
APPLICATION FAILED TO START
***********************...
1
vote
2
answers
67
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
103
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
56
views
Spring Boot microservice not reading from rabbitMQ
I have a rabbitMQ container running from docker compose:
services:
rabbitmq-demo:
image: rabbitmq:3.13-management # Using management tag for easier monitoring
hostname: rabbitmq
ports:
...
-2
votes
1
answer
139
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
95
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
192
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
87
views
Lombok/Maven error: Variable X not initialized in the default constructor
I am trying to create a project with microservices, but i get the error "variable X not initialized in the default constructor" when trying to use the annotation @RequiredArgsConstructor ...
0
votes
0
answers
31
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
application {
config {
baseName gateway
packageName com.christdoes.gateway
...
0
votes
1
answer
68
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
126
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
39
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:
Caused by: org.springframework....
0
votes
0
answers
35
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
33
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.:
class SentenceService:
def __init__(self, model: ...
1
vote
0
answers
296
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
77
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
180
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
67
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
166
views
Cannot read request body from HttpServletRequest when Content-Type is multipart/mixed
Below code handles the incoming API calls:
@RequestMapping(value = "**")
void process(HttpServletRequest request, HttpServletResponse response) throws IOException {
if (request....
0
votes
1
answer
39
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
262
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
54
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
161
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 ...
2
votes
0
answers
102
views
Fallback method in Spring Boot app not getting called when using Resilience4j
I have a simple microservices based app. It has 3 microservices. Movie-Catalog-Service, Ratings-Data-Service, Movie-Info-Service. Movie-Catalog-Service is dependent on Ratings-Data-Service and Movie-...
0
votes
0
answers
116
views
Deserialization Errors in Spring Kafka for byte Array Despite Proper Serializer Configuration
I am new to Kafka & trying to make a decent project for my resume. So in a multi-service (microservices running on docker) model in which I'm developing multiple Spring Boot applications, two of ...
1
vote
1
answer
88
views
Invalid CORS request in Spring boot microservices
I have a problem with configuring CORS in a microservices architecture application using Spring Boot. My application consists of the following components:
• Frontend: Application written in Angular
•...
0
votes
0
answers
44
views
Testing interaction between two web services
I'm learning integration tests on very simple example.
Specs:
I have 2 .Net Core apps: App1 and App2.
App1 uri: "http://localhost:1111",
App2 uri: "http://localhost:2222"
Scenario:
...
0
votes
0
answers
36
views
"unexpected end of stream on com.android.okhttp.Address@ec4770bb"
I am running my Maui Android app on a real device. It needs to connect to the apigateway of a microservices project. The apigateway along with all the microservices are run in docker. I am getting the ...
1
vote
0
answers
93
views
How to save data which are dependent in different microservices using springboot
I have two microservices(for now) Movie, Show
MovieEntity.java
@Entity
@Table(name = "MOVIES")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ...
0
votes
0
answers
54
views
How to change drf-spectacular scheme in one microservice(DRF) to use JWT token from another microservice(FastAPI)?
This scheme uses a built-in JWT auth part for Swagger and I need to input token in Authorize form, but how to connect microservices so that the one microservice(DRF) used the JWT token from another ...
0
votes
0
answers
213
views
How to Reduce the Size of a Nest.js Docker Container Built with a Multi-Stage Dockerfile? [duplicate]
I'm using a multi-stage Dockerfile to build and run my Nest.js application in a Node.js container. However, the final container size is around 600 MB, and I’d like to reduce it further.
# Build stage
...
0
votes
0
answers
25
views
ErrorHandling in N-Tier ExpressJS Applications
Say the following layers
controllers try { } catch ()
business (services) try { } catch {}
database (repository) try { } catch {}
suppose when a exception occurs in database layer caught in catch ...
0
votes
0
answers
37
views
Microservice Discovery-server initalization problem
I set the application.yml files for configuration server and discovery server. When I start to run config-server, it is started with any error. However, discovery server does not do. It gives some ...