Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
6 votes
4 answers
2k views

Protecting against malicious duplicate IDs in a distributed environment

Let's say we have multiple (somewhat autonomous) (micro-)services, and when entities are created, the ID (UUIDs or whatever) can be set externally. How can we ensure that an ID remains unique across ...
Philippe's user avatar
0 votes
0 answers
32 views

Separation of Students and Users in NestJS Microservice architecture

I need help with the architecture pattern I should use in a NestJS project. So I am using a command/query approach for developing my RestAPIs. Right now it's a Monolith and not a microservice ...
Shantanu Tomar's user avatar
2 votes
4 answers
184 views

How to avoid circular dependency in my scenario?

For example, I have a Business Intelligence (BI) microservice, it reads data from other microservices, and displays the data as a bar chart or some other styles. My problem is, the BI microservice ...
NingLee's user avatar
  • 230
0 votes
0 answers
35 views

What's the right ZMQ architecture for my scenario?

I have a service A that every once in a while needs to send a message to a cluster of services B1, B2 ... BN. Then all of these services need to receive that message reliably, and send a confirmation ...
codefast's user avatar
0 votes
1 answer
67 views

How to design permission-based authorization for individual resources for individual users?

I need to design a system that handles multiple types of resources, each having their own business logic and different types of actions available for those resources. The requirements are a natural ...
Nikola Dragić's user avatar
0 votes
0 answers
48 views

Resolving ids to a service in a service oriented architecture

Given a service oriented architecture, for example in a blog system let's say we have services for User, Post, and Comments. A new requirement comes that a User should be able to "Like" any ...
Dan's user avatar
  • 101
0 votes
3 answers
131 views

Events data ownership in microservices

Imagin I have two microservices that need to send email to a customer about some important account realted things that happened. For example, Billing service would like to send an email when a card ...
Michael's user avatar
  • 147
0 votes
0 answers
52 views

Batch Processing to use multiple pods

We have a frontend application in React and a backend application in .NET Core which were deployed in a single Kubernetes cluster of 3 pods (it can autoscale). Before the application, we have a load ...
Chethan SR's user avatar
0 votes
2 answers
111 views

How to implement event payload isolation in an event driven architecture?

I have an event, let's say order.placed The payload consists of some general information about the order and 3 confidential fields. For example part of the message should only be visible to consumer A,...
Kamil Latosinski's user avatar
0 votes
0 answers
99 views

Is turning objects that perform infite loops into a services a good practice?

I was assigned a task to change the communication mechanism between two parties, from Azure Event Hub to Azure Queue + Blob Storage. On the way, I thought redesigning a bit the components to make it ...
Veverke's user avatar
  • 451
1 vote
1 answer
130 views

App that can be deployed both as monolith and microservices?

We have a monolith C++ application and I consider doing some major refactorings. Since we're not completely ready to go full "microservices only" (maybe in about two years time), I want to ...
glades's user avatar
  • 419
1 vote
1 answer
126 views

Monolithic Database to Microservices, but with Radical Data Model Changes

We are finishing up a long (over 1 year) project to retire our monolith. We have been moving pieces of functionality into microservices guided by domain driven design. So far we have been leaving the ...
sceaj's user avatar
  • 304
-2 votes
2 answers
133 views

Microservices - how to implement search combined with security cross cutting concern?

I am trying to design a system and bounded contexts. I have 3 microservices: Security, ProductsCatalog and Customers. Each microservice own its database. Security is a cross cutting concern used in ...
tlzg's user avatar
  • 113
1 vote
0 answers
93 views

Best way to orchestrate/choreogaph steps in a pipeline where each step is executed by a separate microservice and may need to scale independently?

Update: Forget the 'best' way, any way to start with is good enough. I am new to this and figuring it out all by myself is taking too long. I don't even know where to start. I am new to this and ...
kchawla-pi's user avatar
2 votes
4 answers
225 views

Many-to-many modeling for microservices

I have two microservices, say "students" and "courses", they represent separate entities that are managed separately by different teams. A given student can be enrolled in multiple ...
persson's user avatar
  • 197
3 votes
2 answers
217 views

Microservices: separate db instance vs. separate db server

In a scenario with multiple teams, each overseeing a few microservices that collectively create a larger system, and where these services frequently use MongoDB databases, is it advisable for each ...
weno's user avatar
  • 281
0 votes
0 answers
27 views

Bean Custom Constraint Validator in multiple projects which common domain model

I have multiple maven projects ( rest services ) with common domain model. I would not say micro services. Structure is build this way to eventually move towards mircoservices. All the maven projects ...
Bhalchandra K's user avatar
0 votes
2 answers
461 views

How to effectively scale one microservice to multiple instances

Let’s say I have a booking microservice (single instance) with its own DB. If I want to horizontally scale the service with multiple instances(exact same copy of the business logic code) running on ...
dig_123's user avatar
  • 137
1 vote
1 answer
101 views

How does a Bounded Context from DDD help scaling microservices?

New to the microservices architecture - but what I've picked up so far doing some research while designing a microservices architecture for a home rental system is these: Individual microservice ...
dig_123's user avatar
  • 137
4 votes
3 answers
592 views

When would you consider sharing a database to be fine? What are your rules?

When would you consider sharing a database to be fine? What are your rules? Our team in-charge of in-store credits. We: Calculate how much credit the customer earned Keep track of how much credit the ...
LostInComputer's user avatar
2 votes
2 answers
151 views

Child Entity or Aggregate Root?

I have to design a part of a system in responsible for creating tickets for attractions and then sell them. Basically there are three different parts: Product: to create the tickets for sale for each ...
Tobías's user avatar
  • 251
1 vote
2 answers
390 views

Is service discovery an anti-pattern?

We deploy microservices in Kubernetes environment. For providing a solution to a business use-case using microservices, Is the idea of service registration and service discovery not an anti pattern? ...
user1787812's user avatar
0 votes
1 answer
140 views

E2E tests and fan in build pipeline

In chapter 9 (Testing) of the book Building microservices (2nd edition) Author suggests using a Fan-in approach to have a single shared E2E tests for all microservices. This way tests of unchanged ...
wenn32's user avatar
  • 129
-1 votes
1 answer
575 views

Microservices architecture for spring boot application

I have a Spring Boot application which is containerized. The application has become huge with lots of complications and its difficult to maintain it. So I am thinking of breaking it into microservices....
Prasad Patil's user avatar
0 votes
0 answers
59 views

How to provide user id to proxied services in an API gateway pattern?

I'm making code examples of how to start a modern microservices web architecture from scratch, and I only recently learned about API gateway pattern. So far, the authentication methods I used for ...
Diane M's user avatar
  • 2,076
0 votes
0 answers
49 views

Architecture Design using Queue and JWT Token for session management

I am planning to design a microservice system architecture for a ticketing platform. It will be similar to "TicketMaster". Here is the flow of my architecture: client web browser API ...
Isakkiii's user avatar
1 vote
1 answer
98 views

Exposing DB table to other Microservice via a Library

Consider I have 4 Services . Account Order Items Customer Now a External Partner Service calls all these services , by passing an External customer id ( EXT_CUST_ID) in the request. Our platform has ...
Dev-vruper's user avatar
1 vote
2 answers
136 views

Access Token Or Alternative for Microservices For Resource Level Granular Checks

Hi I have following structure : Client App (layer 1) Business logic Services ( Layer 2) Business Logic layer consists of many microservices . Access token can be created and passed from APP layer to ...
TechNjBat's user avatar
0 votes
2 answers
337 views

Clean Architecture with Microservices

I'm fairly new at system architecting and I'm looking for some advice. My company is revamping its order management system. Currently is a monolith system that scales very poorly and is difficult for ...
ArcSpark76's user avatar
2 votes
2 answers
235 views

Can chatty microservices be okay to use if there is a specific use case for them?

Introduction Hi everyone, in my company we are using microservice approach and of course are trying to do it as correct as possible. There is a new requirement coming up where I have laid out a ...
Musterknabe's user avatar
1 vote
4 answers
953 views

How to build REST uri that fetches children by parent ID

I am building 2 REST microservices: ParentService and ChildService. I need to build endpoint to fetch all Child resources related to specific Parent, so I have these URI's as options: GET /parent/{...
milosdju's user avatar
  • 111
-2 votes
3 answers
111 views

Microservices messaging and coupling [duplicate]

So I am designing some microservices that communicate via messaging and event queues. However, if I update a message class, for example remove a field, this will break several participating ...
Bladerider1's user avatar
1 vote
2 answers
175 views

Designing a microservice architecture

I am looking to enhance my skills in back-end technologies and would need your help in setting up a scalable microservices architecture. Here's my project. I have N sensors that send me data (Pressure,...
SkyBlue's user avatar
  • 11
3 votes
2 answers
233 views

Can multiple producers cause events with the same key to be enqueued out of order within a specific partition of a topic?

I'm aiming to create a simple event-driven system where each microservice operates with its own database. The idea is to share database changes across microservices through events. To ensure proper ...
Shahriar Niloy's user avatar
1 vote
1 answer
357 views

Centralize input validation across multiple Microservices

My company, which specializes in logistics and transportation, delegated the majority of the backend microservices to our team. All of the microservices (which our team inherited from "past ...
lecarpetron dookmarion's user avatar
4 votes
1 answer
836 views

Using a single Postgres server process to manage multiple databases in a microservice application

One of the main guidelines I keep seeing for successfully building a microservice application is to use a separate database for each microservice. In diagrams these are usually depicted as physically ...
Q-bertsuit's user avatar
0 votes
2 answers
183 views

When should we separate common parts of multiple services into one separated service

We have some services (consider 10, some of them already exist and some are yet to come). All of these services have a common part where they keep track of what's being changed, and these so-called &...
AminMal's user avatar
  • 101
0 votes
0 answers
105 views

Can the Enterprise Service Bus in SOA be replaced by multiple service bus implementations and still be SOA?

When and Service Oriented Architecture (SOA) is designed, and the ESB is changed to multiple independent service busses that talk to each other (pub/sub), does the architecture cease to be SOA? Is it ...
TriedToAnswerBeforeAsking's user avatar
0 votes
0 answers
44 views

Using messaging and rest to communicate services at the same time

I have two microservices, USERS and PRODUCTS, the second one creates objects referred to first one so it needs first to check that exists First I though in a redis cache, but then I realize that for ...
yorozuya3's user avatar
0 votes
0 answers
101 views

JWT Cookie and API Gateway

Background I have an authentication microservice that handles the user authentication and returns 2 JWT cookies (access_token and refresh_token). I want to incorporate an API gateway that does the JWS ...
Neil's user avatar
  • 9
1 vote
2 answers
1k views

Why do Streamlit applications often consume a FastAPI backend?

I am fond of writing Streamlit applications (when a front-end is needed) and fastAPI backends when I just need a REST API. I've seen many blog posts where these two are combined - with the Streamlit ...
MYK's user avatar
  • 343
0 votes
1 answer
782 views

Single api gateway or one for each microservice

We are going to have multiple microservices and decided to use api gateway. What we couldn't decide is if we should go for a single gateway for all of them or one for each. The reason why one for each ...
dstr's user avatar
  • 239
0 votes
1 answer
247 views

How to write custom implementation of a service/flow for a tenant in a multi-tenant microservice system?

I have a Java Spring boot microservice in production which supports multi-tenancy and the tenants are isolated at database level. This microservice exposes REST APIs for communication. During a ...
ashish.g's user avatar
  • 129
0 votes
1 answer
135 views

Does it make sense to create a new service to house multiple features that are related business-wise but tech-wise independent?

We are beginning to add third-party integrations that all have to do with a certain business concept. (If it helps to make things concrete, in our case it's "measurements," i.e. third-party ...
Andrew Cheong's user avatar
0 votes
2 answers
186 views

How do you handle using same data in different microservices

We have a microservices application and our User management service is the source of truth for user's first and last name. But we also need these in the Reporting service, where we generate reports ...
rqpa93's user avatar
  • 11
9 votes
5 answers
4k views

Which comes first: CD/Trunk-based development or microservices?

My company* wants to move from using long-running feature branching (~up to a few weeks) to continuous integration with trunk-based development, and to break up our monolith into microservices. We'...
Jacob Archambault's user avatar
-1 votes
1 answer
280 views

Using a shared enum across 15 nanoservices [closed]

Originally posted here, moved to code review, redirected from code review back here as there is no code to review. I think the question is enough abstract to be asked here. I have a mono repo with ...
Alexander Petrov's user avatar
0 votes
2 answers
170 views

Microservice Web app - How will I handle User Login in my project management app

I've just started learning to use this architecture and I'm trying to build a simple project management app. The App works such that a user after registering, creates a workspace. This Workspace is ...
Tchoteu Dimitri's user avatar
0 votes
1 answer
92 views

Domain Boundary Definition in `proximity service` as a Case Study

While practicing System Design, I decided to create a hypothetical proximity service (like Google Maps) with a microservice architecture. Suppose we have 3 core categories of functionality: CRUD ...
Andrew Sharifikia's user avatar
-1 votes
3 answers
357 views

Avoid race condition using RDBMS transaction

I am working on design of a distributed system which will process some events. For simplicity lets say, multiple instance of same service will be consuming from same queue, every message will have a ...
Siddhartha Sadhukhan's user avatar

1
2 3 4 5
21