Questions tagged [microservices]
An architectural approach to developing a single application as a suite of small individually deployable services.
9,175
questions
0
votes
0
answers
4
views
Make scaffold deploy only changed helm charts
I have several helm deployments in the same repo and am using skaffold to build and deploy them.
I've broken up the skaffold config in different parts (aka modules with different metadata.name) so ...
0
votes
0
answers
13
views
How to run React/Node Micro Front Ends and Micro Back end Services Docker images on Linux Server?
I have React,Express and Node stack micro apps. There are 4 back end services in node and 9 micro-front-end in React. I created a Dockerfile and build Docker Images for all the front and back ends.
I ...
1
vote
1
answer
18
views
Outbox pattern with Spring Integration
We want to implement an Outbox pattern by using spring integration.
Starting from this example, we came up with this simpeler solution:
protected IntegrationFlowDefinition<?> buildFlow() {
...
0
votes
0
answers
29
views
Test Failure for Onboarding Request
Here is the test failure
Platform.CustomerService.Test.OnboardingTests.OnboardCustomer
Source: OnboardingTests.cs line 64
Duration: 2.2 sec
Message:
No existing ...
-1
votes
0
answers
9
views
Spring Boot Microservices Eureka java.net.BindException: Cannot Assign requested address: connect
I am running a Spring Boot microservices app. The order-service is supposed to query the inventory-service to see if the ordered item(s) are in stock. But instead I am getting this exception.
java....
0
votes
1
answer
34
views
How to efficiently organize authentication & authorization using JWT in a microservice Spring Boot app?
I am still a beginner in creating Spring applications, so I need to further grasp a deeper understanding of how microservice architecture works. So far I have read some conflicting opinions, and I ...
0
votes
1
answer
21
views
RabbitMQ Mass transit Multiple Queues as per Different Environments
I am working on a project in .net 6 web API. I have created 2 microservices Ordering and Production. i set up is successfully. now i have 3 environments : development, Staging and UAT. for the ...
0
votes
3
answers
62
views
Having a separate search microservice or integrate it inside the microservice having the data to be searched after?
I am currently learning microservices and working on a project and i got the following question:
Let's say I have the following service: Item Service.
Item service will work with creating different ...
0
votes
0
answers
10
views
Quarkus runtime extension module
I've a question about how to add a plugin jar without build the whole project.
I mean, I'm developing a product that will be used, potentially, by different customers, it is possible that sume ...
0
votes
1
answer
43
views
How can I handle database Models referencing to each other or being shared by different microservices?
I have a monolithic full stack app, that i am trying to refactor to a microservice architecture. In the monolithic architecture, I have the following models:
import mongoose from "mongoose"
...
0
votes
0
answers
9
views
AG Grid Filtering issue
So we have applied floating filter in second column of ag grid in react by applying the properties: floatingFilter:true,
filter:"agMultiColumnFilter",
Now while we are searching or filtering ...
0
votes
0
answers
45
views
Doubts about Spring Boot microservice without entry point
Lately I found myself with a spring boot microservice maven project with a simple MVC (controller, service, repository) flow but without an entry point, i.e. without an annotated @...
0
votes
0
answers
13
views
Simple Eureka server authentication fails
I am developing a small microservices based application and I need to incorporate authentication in the Eureka server. Currently I have (Spring Cloud) Gateway, Eureka Server and a microservice, both ...
-1
votes
1
answer
18
views
when service discovery is down how microservices communicate with each other
How microservice A communicate with microservice B when service registry is down?
i tried communicating with port id of the microservices B added in microservice A but in real time how it is possible ...
0
votes
0
answers
33
views
Why child pom-files does not extend parent pom dependencies?
I created simple microservice project with structure:
project/ <-- Root directory
|-- user/ <-- Submodule 1
|-- service2/ <-- Submodule 2
|-- pom.xml <-- Root ...
0
votes
0
answers
28
views
Are there drawbacks on Disabling @EnableWebSecurity in Spring Boot for a dedicated Microservice?
I have a Spring Boot main application which serves as an MVC app. This application performs some computation which is outsourced into a microservice. The microservice is also a Spring Boot application....
0
votes
1
answer
29
views
cannot use object as interface value in argument to function: oject does not implement interface in golang [closed]
I was trying to implment strategy design pattern in golang.
Currently, my code looks like this:
package main
import (
ca "github.com/Kieraya/test/test2/cache"
"github.com/...
-1
votes
0
answers
28
views
TransactionScope inside for loop
I have TransactionScope inside for loop in my C# code. so We have multiple records in for loop to process one by one and in that we have used TransactionScope in one of the functionality. now, when ...
-3
votes
2
answers
62
views
How to share data between other microservices in spring boot? [closed]
I am learning about microservices through spring boot cloud. I have 2 services authenticate and product and I call them both through the gateway, I encounter the following problem:
How can the ...
-1
votes
0
answers
41
views
Can I use the @Transactional Annotation to rollback on unsuccessful http responses?
I use several spring boot microservices which also have to execute DB transactions across several services for more complex tasks. Is it possible with the @Transactional annotation to perform ...
0
votes
0
answers
6
views
Permission To Access A Node-Windows Microservice To Files
I developed a server in node with express, however I want it to deploy when I start my PC, so I installed node-windows, to create a microservice that runs when Windows starts, everything works fine, ...
-3
votes
0
answers
37
views
How to share data between microservices in spring boot? [closed]
I am learning about microservices through spring boot cloud. I have 2 services authenticate and product and I call them both through the gateway, I encounter the following problem:
How can the ...
0
votes
0
answers
15
views
kubernetes nginx-ingress IP adress issue
I am getting loopback address while using nginx-ingress controller on kubernetes microk8s
I am using microk8s and nginx-ingress tried different method using loadbalancer and nodeport but still giving ...
-1
votes
0
answers
32
views
Should we use DDD in a large application with huge service call and small business logic? [closed]
I was searching for find best approach to start my web service design.
I couldn't find clear answer for my question,
I have a project with many third party service calls and it contains small business ...
-1
votes
0
answers
43
views
Securing every microservice [closed]
I plan to implement a management system for small company that works like amazon.(A personal project)
What are some best practices to secure microservices?
Would it be a good idea for each ...
0
votes
1
answer
25
views
NestJS microservice class validator errors showing in docker container but not in API response
I'm trying to show errors from my class validator in NestJS.
This is actually the first time I'm using microservices and Nestjs (it's for a school project).
I'm using Docker, and the errors are sent ...
0
votes
0
answers
60
views
Proper separation of an aggregate in a saga
I need to develop a basket for my service. I have a service called Service1 responsible for digital products bought by customers. I also have another service called Billing responsible for prices and ...
0
votes
1
answer
18
views
Microservice with Kong Gateway return 404
I have Ubuntu System where docker is running with kong, konga and 1 microservice refdata-svc
Service Config from Kong
{"retries":5,"created_at":1700806774,"updated_at":...
0
votes
0
answers
19
views
Connection refused with two microservices
I am getting ECONREFUSED error, it seems establish a connection with another service was refused and something is blocking the request.
I am using random token and using the same token for all the ...
0
votes
1
answer
49
views
Custom error in Spring Boot Microservices Application
I'm making a car sharing platform in Java Spring boot. Im using open api files to define my paths and objects. I want to implement a way to have a custom error message shown when a user searched on id ...
0
votes
1
answer
27
views
Performing shutdown actions when the pod is the last in a cluster
TL;DR
How can I tell that the Spring Boot application that is currently receiving a graceful termination in a Kubernetes (Openshift) environment is the last surviving pod in a clustered application in ...
1
vote
0
answers
31
views
middleware function in go kit
I have trouble understanding go-kit middleware so I have a logging middleware set up for my retail_total api endpoint.
func MakeTotalRetailPriceHttpHandler(logger log.Logger, svc PricingService) *...
0
votes
0
answers
38
views
Kaniko fails to authenticate to docker hub registry
I am utilizing Kaniko with Skaffold, and I encounter a persistent issue when running skaffold dev. The error message I receive is as follows:
error checking push permissions -- make sure you entered ...
1
vote
2
answers
35
views
App health checks - should they be dependent on infra components?
I am implementing a new service which connects to a queue and a database. Question: should my application health checks be disabled if my service is unable to talk to my database/queue (both/either)? ...
0
votes
0
answers
17
views
How does E-commerce platforms with microservices architecture use Redis for Caching?
I am using Microservice architecture in my application.Whenever server gets the request,it has to fetch the data from Database,which takes hell lot of time (and inefficient too),So I want to implement ...
0
votes
1
answer
28
views
How do I use Cognito with Express-gateway for token validation
I have drafted the following architecture
I'm having issues on the validate JWT part on the gateway (Not sure if this is how it's supposed to work).
From what I understand, when a request gets to the ...
1
vote
0
answers
34
views
React Vite Module Federation Expose types
I have 3 vite react projects setup currently with module federation and everything is working as it should. The main annoyance is that when using a component in a remote project I get none of the type ...
0
votes
0
answers
10
views
Process queues at different rates in shared codebase
I'm managing an autoscalable service (gke) that consumes from various queues (processing across queues shares 95% of the same business logic). We want to scale up consumption on these queues ...
-1
votes
0
answers
26
views
Unable to connect my container config server with container running registry service
I am trying to run 2 containers containing Spring boot micro service. One is Eureka Registry server and other is config server. I am unable to register my config server to registry server.
I have ...
1
vote
1
answer
47
views
Differentiation between Synchronous Domain Events, Asynchronous Domain Events and Integration Events
While studying about Domain Events and Integration Events, I came accross articles that tend to refer to asynchronous Domain Events as Integration Events.
My understanding of Domain Events was that ...
0
votes
0
answers
24
views
Perform tasks upon keycloak's login/register events
I have a Keycloak instance that I use as an IAM via OAuth2 for my services. Upon user registration and login, I need to prepare some additional data to be used later by the services. To achieve this, ...
0
votes
0
answers
7
views
Microservices - Databases table relations
When developing an application under the microservices arquitecture and using a database per service, how usually it's defined the owner of relationships?
For example, imagine an online shop system: ...
-3
votes
0
answers
15
views
When I execute the search java API(http://localhost:8081/user/user/0692cae3-b791-4e21-a6ea-fee21a427ada) using insomnia, I face the following error
I am trying to fetch data from RATINGS_SERVICE using USER_SERVICE but I get this type of error.i am trying to solve this problem but i am stuck.
java.lang.IllegalStateException: Request URI does not ...
0
votes
1
answer
29
views
How do I make a foreign key on a field from another database
I have a backend with a microservice architecture. Each microservice has its own database. There is a relational database (like postgres) for users with a users table. There is a second same database ...
0
votes
0
answers
47
views
Notifications in Microservices Architecture
I am working on microservices architecture using nest-js and NATS Streaming Server, I want real time notifications on client side. I have two services which generates notifications.
Restaurant ...
1
vote
0
answers
25
views
Hexagonal architecture/Ports and adapters: Communication between adapters
I have read quite a few articles about ports and adapters. Considering communication, they all just speak about communicating between the different "layers" (domain, application, adapters) ...
0
votes
0
answers
33
views
Scheduling in Helidon Microprofile
I am trying to configure a scheduler in Helidon Microprofile. I am trying to get the IntialDelay and value for FixedRate from configuration file but it doesn't seem to work.
I am providing all the ...
-1
votes
0
answers
27
views
How to create the ROOT project correctly in IntelliJ Idea with Java?
When I see the architecture of this project, I want to create it manually.
I check the pom.xml file, it has a lot of modules.
<modules>
<module>cluster</module>
&...
0
votes
1
answer
29
views
Defining an interface, having operations, and Writing different classes to inherit those operations in Ballerina
I have a requirement to plug different types of classes based on some config(Sorry for the term. I mentioned this in java terminology).
This is my use case. I have a rest api service, and have the ...
-1
votes
0
answers
18
views
How to implement SSO in spring boot without octa
We have 2 microservices which are responsible for processing business data along with those we have 1 auth service which handles part of OAuth authentication.
Now we have requirement for SSO login ...