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
-2 votes
0 answers
60 views

Should you reuse IDs between services in a Microservices architecture?

Context Due to scalability issues we've started to migrate our system to a cloud-native and serverless microservices architecture about 3 years ago. We use Bounded Contexts from DDD to determine the ...
29 votes
5 answers
28k views

Large file / data transfer in a Microservice Architecture

My company is currently working on adopting a microservice architecture but we are encountering some growing pains (shock!) along the way. One of the key contention points we are facing is how to ...
1 vote
1 answer
75 views

How to scale transactional outbox pattern with document database?

I'm trying to understand CQRS, DDD by writing a small pet project which is somewhat similar to this great repo. I've come across Transactional Outbox pattern and as imo it was correctly pointed out in ...
3 votes
2 answers
138 views

AWS Serverless Microservice design

I am building an open source task management and note taking service that runs on AWS. I'm building it mostly as a hobby in my spare time and will eventually ship a mobile app that consume it into an ...
0 votes
0 answers
47 views

What is the best way to desgin my api workflow?

I am building a bank management system using the microservices architecture. I have many microservices but I am going to talk about two. I have customer account service and transaction service. Let's ...
2 votes
1 answer
83 views

Granularity of API Gateways to Service Balancers

OSS API Gateways typically come bundled with built-in load-balancing capabilities. We see this with Netflix Zuul and Kong. In a service-oriented architecture, where many microservices are talking to ...
-2 votes
0 answers
19 views

Helper data and functions should be in a microservice? [closed]

I am creating an application using microservice architecture. I have broken down the domains into one microservice. I have two questions regarding handling additional data and functions. I have ...
1 vote
2 answers
64 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 ...
-2 votes
0 answers
81 views

Using a hybrid watermarking/fingerprinting approach for identifying GPS geolocation data [closed]

Our backend is made up of thousands of micro-services. My team deals with and owns geolocation data for our entire backend ecosystem. We get different types of geolocation data from customers: GPS, ...
2 votes
0 answers
63 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 ...
23 votes
1 answer
5k views

SOA/Microservices: How to handle authorization in inter-services communications?

Foreground We are moving from a monolithic platform to a more Service Oriented Architecture. We are applying very basic DDD principles and splitting our domain across different bounded contexts. Each ...
4 votes
1 answer
85 views

Service discovery and load balancers with high-frequency health checks

I am trying to understand the advantages of service discovery compared to load-balancing within the context of a microservice mesh where many instances/nodes/VMs/containers of many web services are ...
0 votes
1 answer
98 views

Reading from SQS using AWS Lambda vs WebApp background worker

I'm writing a microservice (in .netcore) that will handle some requests using WebAPI, but also it needs to react to some external events. I see 2 possibilities how to solve it (on a very high level): ...
2 votes
1 answer
63 views

Foreign key check without data duplication in separate microservices

If for example we have a user, project and a task service where a task is assigned to a single user and user can be part of multiple projects - how can one enforce a rule so that one cannot assign a ...
4 votes
2 answers
1k views

Using distributed locks in microservice environment

I'm developing distributed system and trying to use best practices of microservice architecture. I was faced with a situation when I think I need something like distributed locks. Since I have not so ...
0 votes
1 answer
42 views

DDD: Service role vs Repository

Context I'm giving a try at my first backend API which aim to follow some Domain Driven Architecture concepts that I've learned from an implementation in Go in a Udemy course. The problem is that I ...
3 votes
1 answer
509 views

How to delegate the refresh token renewal in a SOA

So, we've got SOA on the backend (BE) and on the frontend (FE) we've got micro-frontends (the separate micro-frontends are loaded as components into the frontend app when needed, so internal process ...
1 vote
3 answers
132 views

How to split out shared authorization logic across spring microservices

Currently working on a project where we have multiple services that all need to consume the same authorization service when their endpoints are hit. Right now we have the authorization boilerplate ...
3 votes
1 answer
621 views

CQRS, microservices and delta replication

We have a micro-service that has a Domain Model and have an analytical service for the domain which has its own Query Model. The domain model and the query model are stored in separate persistencies. ...
2 votes
2 answers
66 views

Saving REST API IDs into a different microservice

I'm not sure how to best ask this, as it's the first time I have to tackle such stuff. It might be that it's a common problem and I'm just using the wrong keywords to search. Basically, imagine a ...
0 votes
1 answer
132 views

How to share state between microservices

Consider a microservice architecture composed of a number of asynchronously communicating workers. Each worker deals with an isolated task and may have its own specialized database. Now consider that ...
0 votes
1 answer
294 views

Azure Service Fabric - Designing a Calculation Engine

Suppose I have the following devices: Device A Device B Device C (...) Also, for each device, I have the following measurements: Measurement 1 Measurement 2 (...) Each measurement event includes a ...
0 votes
2 answers
1k views

@OneToMany relationship in a microservice environment

I am coming from a typical monolithic background and I've been experimenting a lot with Spring Framework. I have also build some simple microservices communicating with each other etc. Now I want to ...
2 votes
2 answers
302 views

Microservices: Is the Saga Pattern correctly applied here?

I'm trying to understand and learn how to build microservice messages the best and came up with this task for myself: Services given: Accounts Service Token Service Email Service When a user ...
0 votes
1 answer
66 views

Single Gateway for multiple gRPC Services

Currently I have a monolithic gRPC server that implements several service stubs that are utilized by a large amount of internal client programs (none of this is public internet facing). As our ...
0 votes
1 answer
108 views

Distributing responsibilities in a micro service in an Object Oriented manner for a 3rd party integration?

I'm trying to figure out how to structure a 3rd party integration microservice, and how to name the classes accordingly. If you had a classic shopping cart application which processed payments for ...
2 votes
3 answers
1k views

One db per microservice, on the same storage engine?

It is considered the best approach that a microservice db is private to it and shared nothing approach is the best. I recently came across a cloud based system which used postgres, mongodb & ...
0 votes
0 answers
23 views

Microservice Architecture - Calculating API Request Count and Duration

I am in a microservices ecosystem and I want to calculate the API requests count and the duration time for different APIs offered by multiple microservices. It is a multi-tenant system and I want to ...
0 votes
0 answers
37 views

Should Infrastructural Services Listen to Domain Events

I'm building an infrastructural service with my team. We are building a service that will help other teams in our org send out a notifications to end users when certain events occur. We are currently ...
0 votes
1 answer
64 views

Tight coupling between micro services

I have got the following scenario, which I have been thinking what would be the "best" way to solve it. Request comes from the FE, which changes the status of a delivery, and that should ...
2 votes
1 answer
160 views

User (Actor) data shared across Domains / Microservices

I have read through a number of posts on Software Engineering but am unable to find a suitable solution for the problem my team and I are trying to solve. We are building a system where we have ...
0 votes
1 answer
90 views

Azure Event Grid API layer beneath a HTTP API layer

I am part of a project/team that is building a new web app in Azure for the first time, having previously built and developed a traditional three tier ASP.NET web app over a number of years. We have ...
0 votes
1 answer
59 views

Prevent missing updates using a message broker after creating a task

I'm trying to design a data updates mechanism in my micro-services architecture. For the sake of simplicity, let's assume we have two micro-services A and B, B exposes an API for creating some tasks, ...
-1 votes
1 answer
48 views

Any pattern for delaying processing of a (JMS) message until another task completes

Is there a good pattern in microservices systems for delaying the processing of a JMS message until some other task has been completed. Let's say, for example, a message is sent to a topic when a ...
0 votes
2 answers
99 views

Microservice decision about isolating services

I am currently working on redesigning a microservice application. Our application is supposed to serve multiple clients and due to compliance we have to persist the data in separate datastores. We ...
4 votes
5 answers
7k views

Cron Job Microservice

I'm implementing an application that's made of bunch of microservices. Each of them is fairly simple, focusing on its own task. Let's call two of them Service A and Service B. They are both ...
0 votes
2 answers
131 views

What is the computational overhead when running a relational database in several docker services instead of a single instance?

I want to move my current relational database installation into a docker container or a set of a docker containers. I have a web server with an associated relational database. I provide a set of 40 ...
0 votes
2 answers
172 views

Are microservices unfit for our domain logic

I work in a software company with a single product, a 25 year old monolith application (1.2m lines of code) handling all HR related data (employments, salary, collective agreements etc.). I've been ...
-2 votes
2 answers
74 views

best practice to recover or handle requests that is half completed or partially failed [closed]

Assume I have a request: app.post('/order', ()=>{ // task 1 // task 2 // task 3 }) and task1 and task2 is completed but task3 failed. for example a user paid order successfully but saving order ...
12 votes
2 answers
5k views

Is it a good idea to manage a group of repo microservices as submodules of a master repo?

At the moment of writing I have let's say 4 micro services interoperating in order to build a bigger system. Every microservice has its own repo. What I'm thinking is that it would be useful to have ...
0 votes
1 answer
76 views

A service having to have both an API and listen to events - Is this an anti-pattern for microservices?

I have a use case to create a service that consume messages from a message queue, process them, store them in the DB, and expose the processed results via an API. Therefore, the service I'm going to ...
0 votes
2 answers
209 views

How to manage primary keys in CQRS

I'm building a backend following the CQRS pattern and I don't know how to manage properly the primary keys (surrogate keys) between the command and query databases. For example: I have a model with ...
9 votes
2 answers
6k views

Handle localization in microservices architecture

I'm developing a multi culture application with different microservices, The microservices communicate with each others with integrations event, so when a new record is inserted the owner of the data ...
0 votes
1 answer
160 views

Passing an OAuth Token between services with Zero Trust and audience checks

Let's say, we're using an OAuth / OpenID Connect (OIDC) flow (in a Zero-Trust situation) to secure two APIs: ServiceA and ServiceB. To implement some of the functionality of ServiceA, it depends on ...
0 votes
2 answers
166 views

How is scalability and reliability provided to microservices?

Good afternoon, I'm getting into microservices - in fact, I've managed to make few full projects based on that architecture - but they weren't really robust, so I couldn't get the full scope of using ...
0 votes
1 answer
70 views

Microservices: Non-query calls from an API Gateway in the API Composition fashion

In a microservice architecture, it is common for an API Gateway to perform API Composition (providing CQRS is not used) for queries to multiple services to combine data to make it ready for a front ...
-2 votes
1 answer
62 views

Microservices and bounded context - how to handle popular service in the system? [closed]

I'm writing a new microservice app. event driven app. The app handles crypto currency wallets. There is a service: "Coin Service", this one holds data that every other service need access to....
1 vote
1 answer
117 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 ...
-2 votes
1 answer
37 views

PDF service: using a REST API in front of queue vs publishing director to queue

We're building a PDF service for internal use, to permit common operations like HTML to PDF, merging PDFs, extracting pages, convert to/from other formats, etc. We intend to use a queueing mechanism ...
0 votes
1 answer
92 views

What are the best practices in public API vs internal only API being on the same service

I wanted to understand what are the best industry practices and the pros-cons in the following 2 choices: A single service that serves internal only API and public API, vs 2 separate services - one ...

1
2 3 4 5
19