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.

116 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
973 views

How to implement micro-frontends with Native Apps?

I'm working with Web (react) and Mobile (IOS, Android) teams. And I find that even with a microservices architecture we end up always doing duplicated work at the front end/client level. How to ...
Txugo's user avatar
  • 151
4 votes
0 answers
230 views

How to authenticate third-party callbacks that don't support authentication

I'm working on a project that integrates with a third-party service via API, and the third-party uses callbacks to update us on the status of the operations being performed. These callbacks can be hit ...
Omar Rida's user avatar
4 votes
0 answers
139 views

Sharing identical events, with differing scopes, between client and server libraries, in a micro-service architecture

I have a shared user repository (id, name, e-mail, password, etc.) exposed as a REST service - and multiple independent websites accessing this REST service (from the back-end) as a means of sharing a ...
mindplay.dk's user avatar
  • 1,697
3 votes
0 answers
451 views

Blue-Green Deployment: how to synchronize and maintain data consistency after migration?

To provide zero downtime upgrades of my highload service I use blue green deployment strategy. Every moment data changing happens, so how to migrate all data consistently? In the moment I switch ...
J.J. Beam's user avatar
  • 461
3 votes
0 answers
1k views

Authorization, permissions, and scoping resources in a microservice/DDD architecture

I'm building a microservice-based application (services according to DDD) and am about to implement authorization service. There are API gateways and UI applications that access backend servers, and ...
timetofly's user avatar
  • 209
3 votes
0 answers
452 views

How to design a sync api exposed to third party which involves a business transaction across aggregates?

Business Domain In the Sales domain, I have 3 entities - Lead, Contact and Opportunity. A lead is injected into the system from many sources and nurtured. If it is a prospect then it is converted ...
Anisha Agrawal's user avatar
3 votes
0 answers
59 views

I need a web frontend for managing some data. Should I add it to an existing microservice or create a new one?

I work in a company that uses microservices. We have one particular service (let's call it Cart Service for example purposes) that manages some logic (storing carts, allowing other services to add and ...
Noah Gilmore's user avatar
3 votes
0 answers
295 views

When designing an activity-based authorization system, how should additional conditional checks be handled?

When designing an activity-based authorization system, how should additional conditional checks be handled? For example, I have the following authority: VIEW_COMPANY_TRANSACTIONS which allows the ...
Chad's user avatar
  • 307
3 votes
0 answers
829 views

How to design microservices without leader election but job scheduling?

There is a microservices system that is currently using Zookeeper. Let's assume there is just one type of service A that exhibits a simple read of some value t. However, the one of existing A ...
Dawid Pura's user avatar
2 votes
0 answers
105 views

How to define the data model in an event-based infrastructure

After my team went all-out on the microservice paradigm with an emphasis on message passing, I'm having trouble defining and keeping track of all the events in the system. I've read some guides on the ...
Dzeri96's user avatar
  • 129
2 votes
0 answers
235 views

Automatically extended database-based mutex lock - is it a good idea?

Since I am working in a multi-instance microservice environment, I came accross a problem with making some operations being performed at most by one of the running instances at once. The solution ...
PJDev's user avatar
  • 129
2 votes
0 answers
130 views

Minimizing infrastructure code surface for NodeJS microservices and libraries

My company has about 200 repos for microservices and libraries that we share. It's largely been great, but it's hard to keep DRY at the organizational level. We'll often have a large amount of package....
Nick Sweet's user avatar
2 votes
0 answers
82 views

I need something and I'm not sure if it's a service registry

I have the following situation, which seems to be coming up in multiple teams/services in our Microservices architecture. We have Service called "Program". A call can be made to create a new program, ...
SynackSA's user avatar
  • 129
2 votes
0 answers
100 views

Data change event publishing by microservice vs separate application - best practice

Suppose there is a microservice that has an restful HTTP API for CRUD operations on a database - nothing fancy, but there is a journal table of all changes recorded for audit purposes. Suppose also ...
Bohemian's user avatar
  • 2,006
2 votes
0 answers
63 views

Better approach of testing groups of small services with or without dependency injection

Let's assume, that frameworks I use, provide some kind of dependency injection automatically available in testing environment. Let's also assume, that I have a lot of micro services in my application....
mpasko256's user avatar
  • 346
2 votes
0 answers
214 views

UI syncing in case of bulk operation api

In a CQRS system, the convention that we follow is we render the detail view of an aggregate(i.e getById) using the write model and views containing multiple aggregates(like a dashboard) using read ...
Anisha Agrawal's user avatar
2 votes
0 answers
441 views

Distributed transactions and recovery with stateless microservices

I suppose I have the following use case: I want a synchronous service if possible (in case of machine crash I want to finish it in background, by some other node) I want to save something in my ...
Martin Kosicky's user avatar
2 votes
0 answers
560 views

Designing large nanoservice architecture with AWS Lambdas

I'm moving from a coupled architecture to a decoupled architecture using microservices with AWS Lambda. Here is my current architecture: Each API Gateway route is linked to a specific Lambda, each ...
Jean Lbr's user avatar
  • 179
2 votes
0 answers
144 views

How do I take data offline for a specific tenant, if their data is spread across multiple databases and multiple microservices?

I'm working on an application with about 50 or so microservices that have separate multi-tenanted databases. The problem arose of taking a tenant's data offline meaning that any requests for a certain ...
Mike L.'s user avatar
  • 632
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
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
1 vote
0 answers
101 views

Micro-Services: How to avoid repeated polling of the same event from Kafka

I have an Micro-services where we get the event messages from a Kafka messaging system. The event message contains the orders information, quantity, the mode of package and delivery location. At a ...
User27854's user avatar
  • 111
1 vote
0 answers
257 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 ...
JTennessen's user avatar
1 vote
0 answers
181 views

Topics best practices - AWS SNS and others

I'm designing a medium size project that will have few decoupled microservices. I want to avoid costly architecture mistakes at the very beginning. What I'm wondering (I googled and didn't found any ...
Maciej Pszczolinski's user avatar
1 vote
0 answers
440 views

In a microserices environment, how to track which version of which service is deployed where and when?

TLDR How do you keep track of which version of which microservice is deployed in which environment? In Details Say your company has dozens of Microservices and 5 different environments (Dev, QA, Prod, ...
riorio's user avatar
  • 489
1 vote
0 answers
112 views

Strategy for a worker microservice to communicate with GraphQL API

I am trying to find the best way for a microservice to communicate with GraphQL Basic scenario: Client subscribed to GraphQL via Subscriptions (WebSockets) Client creates an Item using Mutation which ...
inside's user avatar
  • 111
1 vote
0 answers
129 views

How to handle the co-exist phase of Strangler pattern gracefully

We are consolidating a number of disparate monoliths, redesigning and implementing a greenfield suite of microservices and micro-frontends. The stack is all new, the design is all new - it couldn't ...
Lee Alderdice's user avatar
1 vote
0 answers
367 views

RabbitMQ messages reliability for at-least-once delivery

I wanted to ask what are the possibilities of maintaining reliability when exchanging messages between microservices, when one of those message is rejected. As of today, we don't want to lose messages,...
mkuligowski's user avatar
1 vote
0 answers
87 views

Multitenancy - Multischema DB and should we handle by individual microservice basis?

I am looking into the revamping my organization's application by moving from a monolithic into a microservice-architecture. My database is a multi-schema shared in one database. Each of these schemas ...
Melvin Mah's user avatar
1 vote
0 answers
744 views

Migration from monolithic Spring MVC, JSP, JQuery, Bootstrap frontend to micro-frontend

We are trying to migrate from a monolithic application to a micro-services one. On the backend we did a lot of work and now we start splitting it into REST micro-services with a well defined JSON API. ...
Daniel's user avatar
  • 19
1 vote
0 answers
36 views

How to Upgrade MQ with incremental approach with 50 micro services

I have around 50 microservices which communicate with each other using Apache MQ implementation. I want to know if I can avoid big bang approach when I need to upgrade the MQ version. Current option ...
TonyStark's user avatar
1 vote
0 answers
58 views

Microservice with "grab bag" set of inputs, how to manage for the long term?

My team is building a tenanted primary service, with shared microservices used by that primary to separate common business tasks. We're building a new microservice that is responsible for running a ...
rythos42's user avatar
  • 119
1 vote
0 answers
215 views

Event-based communication between microservices

I'm currently looking into NestJS to use as the framework for a new e-commerce project. The goal is to build multiple loosely-coupled services, which can communicate with each other using the pub/sub ...
JasonK's user avatar
  • 111
1 vote
0 answers
177 views

Can/should multiple application contexts share a common microservice in a single namespace?

My current employer has a single namespace into which all microservices for all projects are deployed. Projects A, B and C all use microservice x in this common namespace: Rather than each design ...
8bitjunkie's user avatar
1 vote
0 answers
124 views

How are changes populated to FrontEnd in Microservices Event First scenario?

I've been reading recently about Event First approach to microservices where Event Store is a Single Source of Truth for all the applications (https://dzone.com/articles/data-consistency-in-...
cah1r's user avatar
  • 302
1 vote
0 answers
438 views

ACL entity and microservices database relations

I would like to build a microservices architecture to handle the following scenario: I have a building. The building has some kinds of devices. And the devices can be used by the users. In the system, ...
michalk93's user avatar
1 vote
0 answers
185 views

Asynchronous Micro-Service Authorization

I have the following setup for my application: A User logs in and is granted a Session Token. When making API requests to Service A the User provides the Session Token. All requests go through an API ...
Rohan Shah's user avatar
1 vote
0 answers
121 views

What are the design patterns and supporting technologies for sharing complex objects between microservices?

Question: Given that two services operate on a common complex object, what are possible design patterns and supporting technologies of exchanging the object and (possibly) sharing the implementation? ...
Christian Fries's user avatar
1 vote
0 answers
59 views

Dynamically start containers to isolate code compilation / running

I'm building a system where I need to measure certain algorithms, which are written by the end users. Obviously running external code is a huge security risk, therefore it needs to be isolated. The ...
dvarsanyi's user avatar
1 vote
0 answers
49 views

How should propagation of service abuse information work within a microservice architecture?

At the moment, I'm working on a product that's being broken down from a monolith to a bunch of microservices, and it seems to be going well enough. However, if a user is abusing the service somehow, ...
Parthian Shot's user avatar
1 vote
0 answers
437 views

How to maintain table relationship across services in with a micro-service architecture

I have a scraper service that looks for media online. For every source type, there are two tables. A common source table and a source_type_media table that are related by source.id to ...
PGT's user avatar
  • 111
1 vote
0 answers
161 views

OpenID Connect - UserInfo endpoint Redundant?

Why would we use the userinfo endpoint in OpenID Connect to get information about the user when we can simply include that information in the access token? The UserInfo Endpoint is an OAuth 2.0 ...
fml's user avatar
  • 517
1 vote
0 answers
65 views

Is this a good solution for Card holder applications?

Business case I am currently looking for a better architecture to replace the current implementation for my application. Currently, My application runs on a mainframe system with CICS used for ...
aka's user avatar
  • 11
1 vote
0 answers
388 views

In which ways, Netflix conductor is different from a BPEL engine?

Netflix conductor allows you to implement complex business and process flows using a JSON DSL. I do understand the scheduled nature of Conductor, still, in what way, it is different from having a BPEL ...
senseiwu's user avatar
  • 668
1 vote
0 answers
165 views

Integration tests in different environments

Our microservices are going to be deployed on AWS, using Pipelines. A step on this pipeline will execute integration tests using a dedicated database on AWS, a MySQL instance. My question is: since I ...
abierto's user avatar
  • 111
1 vote
0 answers
708 views

Will use service layer directly from controller or use command, command handler approach to process the request from asp.net web API?

I am going to build a simple asp.net web api application which will send request to 3rd party service and then return back the response to client. Before sending request to external service, I need ...
Hasibul's user avatar
  • 111
1 vote
0 answers
212 views

Load balancing outgoing connections in Azure Service Fabric

I'm currently developing an app using the Azure Service Fabric. My question comes in regards to balancing outgoing connections. One of my services is going to be making a large number of outgoing ...
Blue's user avatar
  • 89
1 vote
0 answers
276 views

Migrating from monolith to microservices reusing data layer

We are basically in process of moving from monolith system to microservices and we avoided migrating monolith system all at once, or as they call it a "big bang" https://www.nginx.com/blog/...
John's user avatar
  • 783
1 vote
0 answers
186 views

Communication direction between microservices

Let's say I have 2 micro-services. One is identity and another is support. I understand when user is created inside identity ms, event will be published and support micro-service will subscribe to ...
Robert's user avatar
  • 545
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