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
3 votes
3 answers
514 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
113 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
318 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
87 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
  • 111
-1 votes
1 answer
142 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
55 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,056
0 votes
0 answers
34 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
90 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
1 answer
83 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
188 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
188 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
0 votes
3 answers
205 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
  • 101
-2 votes
3 answers
101 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
154 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
1 answer
125 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
246 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
187 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
89 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
70 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
40 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
58 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
795 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
254 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
115 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
111 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
169 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
167 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
110 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
64 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
188 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 votes
3 answers
136 views

Choosing an Approach for Microservice Communications

I'm developing a doctor-patient system that consists of two microservices, namely the "doctor" and "patient" microservices. Both doctors and patients share some common attributes, ...
omid's user avatar
  • 1
0 votes
1 answer
176 views

Cheap But Effective Solution for Logging in a private rest microservices backend api

I've created a backend following a microservices architecture and now I need to implement logging. my understanding After reading some articles about this topic, I've listed below some "pretty ...
Big_Boulard's user avatar
3 votes
2 answers
246 views

Best approach to microservice shared databse architecture

I have two microservices, one Flask (python) and one Spring (java), they currently share a database. The Flask microservice handles processing json files (~40mb) for each user (could be 100's or 1000'...
MSmith's user avatar
  • 31
2 votes
1 answer
486 views

In an event-driven system, what are the best practices around the number of events and size/atomicity?

If you can have one event with multiple "things to process" or one event per thing to process, what is considered the best practice? Bearing in mind, the former option may involve persisting ...
Dr. Thomas C. King's user avatar
1 vote
4 answers
676 views

Microservices distributed lock mechanism

I am using spring boot with mongo db (azure cosmos db) in my microservices. Currently I have an Orders collection that stores Orders. These documents have a field userId that is null when the document ...
Andre Silva's user avatar
0 votes
0 answers
63 views

Data producers and consumers: How to connect MySQL with microservices?

Consider a web-app with 5 micro-services deployed with Docker, and a MySQL container dedicated to storing data produced from other services (shared-database pattern). How should I make the connection ...
JrCaspian's user avatar
  • 125
0 votes
1 answer
249 views

Ordering events across multiple topics in a distributed system

Our platform is growing in the number of events we're raising, and these different events are often related to one another: ProductCreated ProductUpdated ProductTakenOffSale ProductPutOnSale ...
FBryant87's user avatar
  • 323
0 votes
2 answers
91 views

How to handle the consumption of multiple event types when timing is crucial?

I have a distributed platform which allows customers to make purchases, and the items which are purchased are stored in an inventory: Sales app -> PurchaseEvent -> Inventory app The Sales app ...
FBryant87's user avatar
  • 323
2 votes
2 answers
488 views

How to design inter-service communication with notifications microservice?

I'm creating an application based on the microservice architecture and stuck on notifications microservice design. Basically it should be a service that notifies users about events happening in the ...
Ledorub's user avatar
  • 121
1 vote
3 answers
327 views

Is layered architecture style inherently monolithic?

Overall cost and simplicity are the primary strengths of the layered architecture style. Being monolithic in nature, layered architectures don’t have the complexities associated with distributed ...
Gill Bates's user avatar
-2 votes
1 answer
100 views

Proper use of microservices within the system

I have an application in which a client interacts with a backend, which interacts with blockchain. Since blockchain executions can be time-consuming, they are executed asynchronously within different ...
Ahmet Yazıcı's user avatar
1 vote
1 answer
100 views

Is my security pattern correct for authenticating principal users to my microservices?

We are trying to implement an authorization and authentication service for our product. Now, we would have to cater to different kinds of IAM systems like SSO, LDAP and Basic Username+Password in ...
Anirban Das's user avatar
0 votes
3 answers
553 views

How to handle dependencies between microservices all called within one large service

We are working on a suite of Python 'services' each of which is basically an application that does some calculations based on a domain (data) model and returns the results. These services are designed ...
Mathias A.'s user avatar
0 votes
1 answer
265 views

How to decomposing a single bounded context into multiple microservices for organisational purposes?

I have a monolith implementing what is basically an ETL process, receive data from external system, orchestrate the processing of it, and then pass the results back to an external system. (The ...
user1937198's user avatar
3 votes
2 answers
228 views

What make a microservice a microservice?

I am new to microservice. While learning about them, I was wondering what is the basic rules (the minimum) that make a microservice a microservice. I have found some rules/characteristics along the ...
Hung P.T.'s user avatar
0 votes
1 answer
532 views

Many-To-Many relationships in a Microservice architecture and if the services are correctly identified

I am creating a distributed chat system with a microservice architecture where a user can log in and chat with another user. The services that I identified is a conversation service that handles chat-...
thetruth's user avatar
0 votes
1 answer
203 views

Exchanging data between two Microservices

I am facing this problem and would like to review my approach to it here. A Client sends an HTTP request to Service A and is expecting an answer. Service A is connected to DB A. When it receives a ...
Solidak's user avatar
  • 157
0 votes
1 answer
75 views

Should I create access control as a microservice or keep the access control logic as part of the specific microservice?

I was wondering if I have a microservice called, for example, Weather, and only certain people can update certain properties around the weather such as Temperature, Precipitation, and Wind. These ...
David King's user avatar
-1 votes
1 answer
47 views

Looking for specific paragraph in RFC [closed]

Some decades ago working with IRC, I remember a paragraph of some RFC and now I'm looking for it. I don't remember it by memory, only a concept: When it comes to communication between two services, ...
Leandro Bardelli's user avatar

1
2 3 4 5
21