Questions tagged [microservices]

Microservices are small, independent processes that communicate with each other to form complex applications which utilize language-agnostic APIs. These services are small building blocks, highly decoupled and focused on doing a small task, facilitating a modular approach to system-building.

Filter by
Sorted by
Tagged with
-1
votes
2answers
29 views

Microservice design to fetch different DBs according to parameter

I'm facing a scenario where I have a microservice that fetches possible filter values as the user is typing a query. Ex.: As the user type "city:", the possible values that could come is: ...
-1
votes
0answers
15 views

Multi-node (multi-instance) microservice state management best practices

I have a HA scheme of N nodes, each on a different AZ and I'm planning to implement services which are loadbalanced and scalable in the event of bursts of activity. For static services such as web ...
0
votes
2answers
44 views

Service changes for local development environment

I am developing a web app along with a backend API. The backend however must talk to other services, some of which are internal and others are not. In an ideal scenario we would spend time and have a ...
1
vote
1answer
144 views

What is the common practice to serve a REST API based request asynchronously?

I am building a microservice app where the client sends requests through REST APIs to the backend server, and the backend will communicate with other services using gRPC. I am aware that this is ...
0
votes
1answer
98 views

Is it reasonable to pass file URLs to microservices instead of the file contents?

In microservices oriented architecture, service A receives a file and stores it. Later Service A has to pass the data in the file to Service B. We have a choice to send the data, as: batches of rows ...
0
votes
1answer
73 views

Should you be replicating even small chunks of data in an Event Driven Architecture? [closed]

We're currently considering building an app's backend using an Event Driven Microservices Architecture. From what I've learned, this means you should be replicating data which is used by multiple ...
1
vote
1answer
99 views

How to create an object requires multiple bounded contexts?

I will describe my problem with a very typical example, an e-commerce application. Says we have to manage Products, and we have 2 bounded contexts Sales, and Warehouse that store the product ...
1
vote
1answer
51 views

Storing large data shared between microservices running in containers at AWS

I'm dealing with an application that does the following: we have a microservice running on EKS called by jobs that pull XML data off an external system. The data volume can be fairly large (700MB-1GB ...
0
votes
0answers
25 views

Creating entity with external dependency inside the aggregateroot?

Okay, so, I'm working on an AuthService for my microservices system. I'm putting plenty of logic around single instance of User inside of it itself, just so I can avoid repeating code, breaking SRP or ...
0
votes
1answer
30 views

BFF/Gateway authorization pattern for other microservices

I'm starting a project using Azure as our serverless framework. The project consists of two separate frontends applications that must talk to some backend services, some will be made by me and others ...
0
votes
2answers
66 views

Microservices inter-communication when response is needed

I have some REST API microservices (powered mainly with Java / Spring Boot) that communicate with other synchronously and I found out that is a bad practice since they are highly coupled. An example ...
0
votes
0answers
18 views

Is there a set of guidelines on how to handle/code execution of Spring Microservices RESTful API calls?

I'm building a RESTful web api using Spring Microservices. I am following the Controller/Service/Repository Structure. Where can I find some guidelines on what the responsibility of each class should ...
0
votes
1answer
70 views

How should you structure the front-end/client to interact with a web app microservice?

I've been grappling with this for a while and figured I would post here to get input. I am a full stack engineer. I work on both front end and back end apps, where sometimes I have to create new ...
2
votes
3answers
131 views

How to implement ownership of microservices while maintaining business agility?

I am struggling to reconcile some good recommendations, relating to the microservice architecture and Agile and DevOps, that are mutually exclusive in my mind. On one side we have the recommendation ...
0
votes
1answer
54 views

Should Configurations Be Split To Different Microservices?

As part of a microservice-based system design, I'm struggling to decide where system configurations should reside in terms of domain ownership. For example, let's assume I'm designing a "store ...
-2
votes
1answer
54 views

Securing http communication between backend services [closed]

What is a good way to secure http communication between two backend services which are not hosted on the same network? One way might be to have a shared secret in both services but I feel like that is ...
-1
votes
1answer
98 views

Should micro services follow HTTP verbs precisely?

I'm concerned with the practices on my team regarding following REST and HTTP verbs precisely. For example, when we hit a get endpoint for a resource/resources that doesn't exist, we return a 404. ...
1
vote
1answer
103 views

Handling Errors in a Microservice architecture and asynchronous message queue

When inter-communicating through http requests between Microservices it is quite easy to reply with error messages to users, you can just catch the error of a different Service and forward it to the ...
0
votes
2answers
64 views

DDD and bounded contexts: can a context be mapped in multiple microservices?

Let's suppose that I have two bounded contexts: A and B. In books I'm reading authors will only write "Context A maps into Microservice A". Now I'm working on a project (university ...
0
votes
0answers
92 views

Microservice code reuse strategy for static classes

Hope this is the right place to post an opinion-based question like this. I'm in the process of converting an aging API monolith to a set of .NET 5/C#-based microservices and working on the code reuse ...
1
vote
2answers
41 views

Compare diff between similar objects stored in two different databases and delete the missing records from the later

We have a legacy system (app 1) that has millions of records of an object Project. It has ProjectId and OrganizationId columns along with other properties. A recently added service (app 2) gets the ...
1
vote
3answers
190 views

Using IP address vs domain name for microservice communication

We have microservices in separate machines that currently use IP addresses in their configuration to communicate via REST APIs. There are also domain names defined for these machines. Is it a good ...
0
votes
1answer
57 views

How to get analytical information from a microservices system?

In an event-driven microservice architecture, imagine we have three services: Customer service Order service Item service Each service raises an event with data when something happens and stores ...
0
votes
2answers
169 views

What is the difference between business capability and subdomain Decomposition in microservices?

I want to understand the difference between business capability and subdomain Decomposition for mircorservices. subdomain The subdomain decomposition corresponds to Domain-Driven Design (DDD) ...
-2
votes
1answer
62 views

Backend microservice design

I'm currently designing a new online platform where the frontend will be Angular using Angular Universal and the backend will be a sort of Node.js clustered microservices. The question itself is what ...
1
vote
1answer
127 views

Data validation between microservices

Consider a scenario (in .Net Core world), where a microservice A collects data from external sources and sends this data asynchronously (RabbitMQ) to microservice B (the reporting system) where this ...
0
votes
2answers
115 views

What is the definition of a `service` in microservice/Service-oriented architecture?

I looking for the scientific agreed upon definition of 'service' in Microservice/Service-oriented architecture. I found a the definition It logically represents a repeatable business activity with a ...
1
vote
1answer
70 views

How to deal with master data in a microservice environment

Hey Software Engineers Currently we basically have a what I would call "modular monolith". A diagram would likely look something like this: What we want to do in the future is being able to ...
0
votes
0answers
55 views

Dealing with third party api rate limit when using multiple services

I have 1 api key that has a rate limit 1000req/1min. I would like to somehow use 50% of that limit in service 1 and 50% of that limit in service 2. Let's say they're just 2 separate processes using ...
0
votes
2answers
78 views

Dev/prod parity and microservices

According to the 12-factor-app dev/prod parity principle, the developers' local environments and production should be similar. For developers working on a system with a complex microservice-based ...
0
votes
0answers
54 views

Microservices - responding to frontend

I have seen multiple videos on microservices from guys building netflix/instagram and so on, and many and data consistency between microservices, but one thing that I can't really grasp yet, is as ...
0
votes
1answer
54 views

What is the best approach when working in a communication between Microservices using Azure Functions?

I'm working in a situation where I have 2 different projects (kind of microservices, but they are still messed up in terms of the tables that each project can access - same domain). But so far, they ...
0
votes
2answers
87 views

Scaled services and order of events sent as messages (using a broker)

How would you go about making sure that "events" sent as messages to any sort of broker (Kafka, RabbitMQ etc) from multiple instances of the same service (load balanced) are actually added ...
0
votes
1answer
88 views

How to do "initial sync" of data for new microservice that depends on data from another microservice?

Hypothetical scenario: Let's say I have a Customer service. It has 1 million customers in its database. I then create a new service that depends on a specific projection of the customer entity. I want ...
0
votes
1answer
46 views

Is publishing to the same event store stream from multiple places an anti pattern in a distributed transaction?

Below is a little context to the problem I'm trying to solve. There are two separate microservices with separate frontends , APIs and databases. Customer Microservice - Manages customers Orders ...
0
votes
1answer
69 views

Multiple Lambdas, one database?

Having read through various microservices literature, I've seen a common recommendation that a microservice should generally be fairly cohesive, owning its own data repository, and serving as the ...
0
votes
1answer
40 views

Replacing ASP.Net 4 app with microservices and React

Backstory: My new employer has Dynamics CRM on-prem and it is used by all office staff and other colleagues that are consultants. All other employees are a working force out on various construction ...
8
votes
10answers
585 views

Boneheaded exceptions should not be caught. Then how to provide fault tolerance and reliability?

I've always been taught that fatal exceptions (indicating problems that cannot be solved programmaticaly) and boneheaded exceptions (resulting from bugs in my code) should not be caught, should not be ...
-2
votes
1answer
173 views

Modular monolith vs microservices for hybrid multi-tenancy

TLDR; I'm architecting an hybrid multi-tenant app that needs to handle customizations request from customers (tenants), I'm trying to decide between modular monolith and microservices pattern, Which ...
0
votes
0answers
39 views

Design : How to divide the responsibility in micro services

I have two micro services built using spring boot, One micro service is: "payment" Which handles actions related to payments. Like creating a payment link. Getting the latest status of ...
4
votes
1answer
205 views

Can an api gateway handle websockets requests besides regular http requests at the same time?

I am working on social platform with a distributed architecture. The platform should offer a chat module, but since the most efficient way to implement a chat is using websockets. I am not sure what ...
0
votes
0answers
43 views

Two microservices communicating each other, causing cycle dependencies, is this ok? [duplicate]

Is it okay that microservices may communicate to each other, causing cycle dependencies? As I understand from this post two microservices can be loosely coupled (each of them has interface, and can be ...
0
votes
2answers
63 views

How to keep authentication in user context in reactive programming?

I want to execute everything in a user context. Meaning that if the request comes from one user then the service has a token of only this user and can't execute anything for another user. Now the ...
-1
votes
1answer
76 views

Should I use a database as gateway to other services? [closed]

The context I have an IoT project where the sensors are sending data to my Postgres database. The sensors are manages by a stand-alone service which provides a REST API to query various information ...
0
votes
4answers
155 views

Should queries in CQRS be designed based on external demand?

I'm working in a microservice application which has some level of coupling between the microservices (some of them talk with each other via rest api - I know it is bad, but it is what it is; also I ...
1
vote
1answer
82 views

What are the approches to to fetch common data btween microservices without replication?

One of the alternatives for managing common data between microservices is replicating the data needed by multiple services in their own databases but there are large data sets that we do not want to ...
1
vote
2answers
72 views

Make infinite loop handleable via delay?

I have a Node.js micro-service architecture-based back-end. Services communicate with each other via PubSub. E.g. upon a request to service A, service A messages either service B or service C via ...
0
votes
1answer
178 views

How can users be notified of changes during collaborative editing in a system like Google Docs?

"Designing Google Docs" is a popular system design interview question, and there are plenty of articles on it on the web. However, those mostly touch on merging changes, but don't explain ...
2
votes
4answers
219 views

How do I avoid tightly coupling one microservice to another microservice's feature that depends on specific views of the first's data?

I've seen this problem in a few different contexts now but I'm not sure what it's called or how to think about it. Suppose I have a service, AccountService, that serves accounts from a database, e.g. ...
-2
votes
1answer
37 views

What is the proper diagram to describe an event subscriber final graph?

I'm working on a microservice application and I need to describe the complete execution graph of a specific event being published, where each node in the graph is a specific microservice subscription ...

1
2 3 4 5
18